Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 49.17 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1271, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003705/0.1308, allocations: 2.018 MB / 352.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.132, allocations: 0.5686 MB / 353.3 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.1322, allocations: 3.938 kB / 353.3 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.1323, allocations: 23.8 kB / 353.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.1326, allocations: 31.72 kB / 353.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.1329, allocations: 71.78 kB / 353.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001965/0.1331, allocations: 123.6 kB / 353.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1333, allocations: 57.73 kB / 353.6 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1334, allocations: 59.77 kB / 353.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.793e-05/0.1335, allocations: 63.64 kB / 353.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.1335, allocations: 8 kB / 353.7 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.405e-05/0.1336, allocations: 12 kB / 353.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.765e-05/0.1336, allocations: 27.92 kB / 353.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.496e-05/0.1337, allocations: 67.59 kB / 353.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002033/0.1339, allocations: 135.7 kB / 354 MB, free: 1.145 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1339, allocations: 0 / 354 MB, free: 1.145 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.134, allocations: 4 kB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.134, allocations: 4 kB / 354 MB, free: 1.137 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006877/0.1347, allocations: 446.8 kB / 354.4 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1347, allocations: 12.03 kB / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.686e-05/0.1348, allocations: 20.75 kB / 354.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.135, allocations: 219.9 kB / 354.7 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.135, allocations: 12.36 kB / 354.7 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.1351, allocations: 24.28 kB / 354.7 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.1356, allocations: 251.4 kB / 354.9 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1356, allocations: 0 / 354.9 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.1356, allocations: 11.94 kB / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1357, allocations: 4 kB / 355 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.1359, allocations: 83.92 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006683/0.1366, allocations: 0.5999 MB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.137, allocations: 147.9 kB / 355.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1372, allocations: 82.62 kB / 355.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.1372, allocations: 3.984 kB / 355.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.1372, allocations: 46.48 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.1372, allocations: 0 / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005465/0.1378, allocations: 189.2 kB / 356.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.1379, allocations: 114.8 kB / 356.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.138, allocations: 154.2 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.138, allocations: 25.7 kB / 356.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.68e-05/0.1381, allocations: 116.4 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.1382, allocations: 27.64 kB / 356.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.1382, allocations: 41.7 kB / 356.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1383, allocations: 323 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1385, allocations: 35.97 kB / 356.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.1386, allocations: 140.8 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.1389, allocations: 189.5 kB / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1389, allocations: 0 / 357.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003675/0.1393, allocations: 193.2 kB / 357.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1393, allocations: 8 kB / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1394, allocations: 8 kB / 357.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1394, allocations: 4 kB / 357.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1395, allocations: 47.91 kB / 357.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1396, allocations: 7.938 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.1397, allocations: 24.27 kB / 357.5 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.1397, allocations: 12 kB / 357.5 MB, free: 13.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.1398, allocations: 149.5 kB / 357.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.14, allocations: 89.5 kB / 357.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.1401, allocations: 24.64 kB / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1401, allocations: 0 / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.1401, allocations: 4 kB / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.1401, allocations: 480 / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.1404, allocations: 217.7 kB / 358 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1404, allocations: 4 kB / 358 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.1406, allocations: 31.98 kB / 358.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1406, allocations: 0 / 358.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1407, allocations: 15.92 kB / 358.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1407, allocations: 3.984 kB / 358.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1407, allocations: 0 / 358.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005421/0.1412, allocations: 386.5 kB / 358.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.694e-05/0.1413, allocations: 105 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.1414, allocations: 4 kB / 358.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.1415, allocations: 8 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.1415, allocations: 7.984 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.1416, allocations: 4 kB / 358.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.991e-05/0.1417, allocations: 124.1 kB / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1417, allocations: 0 / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.142, allocations: 35.84 kB / 358.7 MB, free: 11.89 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001087/0.1421, allocations: 103.2 kB / 358.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003399/0.1425, allocations: 132.6 kB / 359 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1425, allocations: 0 / 359 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.722e-05/0.1426, allocations: 27.97 kB / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.1431, allocations: 67.55 kB / 359.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008352/0.1439, allocations: 448 kB / 359.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.1443, allocations: 0.7279 MB / 360.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/0.1443, allocations: 11.44 kB / 360.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1444, allocations: 0 / 360.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Templates: time 0.003688/0.148, allocations: 1.623 MB / 361.9 MB, free: 8.699 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches