Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 104 kB / 16.45 MB, free: 6.434 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.001397/0.001397, allocations: 192.7 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07608/0.07609, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 86.19 kB / 394.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1156, allocations: 49.41 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003776/0.1194, allocations: 1.992 MB / 445.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1207, allocations: 0.5658 MB / 446.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.1209, allocations: 7.938 kB / 446.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.121, allocations: 15.8 kB / 446.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.1212, allocations: 27.78 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1215, allocations: 67.8 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.1217, allocations: 119.6 kB / 446.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.1219, allocations: 65.28 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.122, allocations: 55.78 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.1222, allocations: 51.77 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.1222, allocations: 8 kB / 446.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.398e-05/0.1222, allocations: 19.94 kB / 446.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.911e-05/0.1223, allocations: 27.92 kB / 446.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.1224, allocations: 59.66 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.1226, allocations: 127.5 kB / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1226, allocations: 0 / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1226, allocations: 0 / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1226, allocations: 0 / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007857/0.1234, allocations: 427 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1234, allocations: 12.03 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.015e-05/0.1235, allocations: 16.75 kB / 447.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.1238, allocations: 200.1 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.1238, allocations: 8.375 kB / 447.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.1239, allocations: 12.38 kB / 447.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.1245, allocations: 258.8 kB / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1246, allocations: 0 / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.1246, allocations: 8 kB / 447.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1246, allocations: 0 / 447.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.1249, allocations: 91.81 kB / 447.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000707/0.1256, allocations: 0.592 MB / 448.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.1259, allocations: 151.9 kB / 448.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.1261, allocations: 78.64 kB / 448.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1262, allocations: 3.938 kB / 448.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.1262, allocations: 46.53 kB / 448.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.1262, allocations: 4 kB / 448.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005725/0.1268, allocations: 181.3 kB / 448.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.1269, allocations: 110.7 kB / 448.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.127, allocations: 134 kB / 449 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1271, allocations: 25.7 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1272, allocations: 116.1 kB / 449.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.1272, allocations: 31.62 kB / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.939e-05/0.1273, allocations: 33.72 kB / 449.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1275, allocations: 326.8 kB / 449.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1276, allocations: 35.97 kB / 449.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.1278, allocations: 133.7 kB / 449.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.1281, allocations: 193.5 kB / 449.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1281, allocations: 0 / 449.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003902/0.1285, allocations: 201.1 kB / 450.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1286, allocations: 8 kB / 450.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.1286, allocations: 0 / 450.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1286, allocations: 8.469 kB / 450.1 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.1288, allocations: 43.92 kB / 450.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1288, allocations: 7.984 kB / 450.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.1289, allocations: 23.84 kB / 450.2 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.1289, allocations: 8 kB / 450.2 MB, free: 9.395 MB / 334.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.0001185/0.129, allocations: 129.7 kB / 450.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.1292, allocations: 93.42 kB / 450.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-05/0.1293, allocations: 17.19 kB / 450.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1293, allocations: 4 kB / 450.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1293, allocations: 4 kB / 450.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1293, allocations: 0 / 450.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.1296, allocations: 209.5 kB / 450.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1296, allocations: 3.938 kB / 450.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.1298, allocations: 39.91 kB / 450.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.1298, allocations: 4 kB / 450.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.1298, allocations: 0 / 450.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1298, allocations: 0 / 450.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1298, allocations: 4 kB / 450.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005756/0.1304, allocations: 387.2 kB / 451.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.1305, allocations: 85.05 kB / 451.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.1305, allocations: 8 kB / 451.2 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.1306, allocations: 7.984 kB / 451.2 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.1307, allocations: 12.06 kB / 451.2 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.1307, allocations: 4 kB / 451.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.109e-05/0.1308, allocations: 99.95 kB / 451.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1308, allocations: 0 / 451.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.1311, allocations: 27.94 kB / 451.3 MB, free: 8.176 MB / 334.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.0001151/0.1312, allocations: 99.25 kB / 451.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1316, allocations: 127.7 kB / 451.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1316, allocations: 0 / 451.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.813e-05/0.1317, allocations: 31.91 kB / 451.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005003/0.1322, allocations: 65.25 kB / 451.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007466/0.133, allocations: 390.2 kB / 452 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.1333, allocations: 0.7084 MB / 452.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.626e-05/0.1334, allocations: 13.08 kB / 452.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.1334, allocations: 15.44 kB / 452.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1334, allocations: 0 / 452.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of Templates: time 0.004324/0.1378, allocations: 1.257 MB / 454 MB, free: 5.422 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches