Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 106.9 kB / 16.45 MB, free: 6.449 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.001054/0.001054, allocations: 192.2 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.496/1.496, 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.07642/0.07642, allocations: 12.58 MB / 283.2 MB, free: 15.4 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.001896/0.001896, allocations: 85.11 kB / 394.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 49.41 MB / 443.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.003838/0.118, allocations: 2.141 MB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1197, allocations: 0.687 MB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1199, allocations: 7.938 kB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.1203, allocations: 43.7 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1204, allocations: 55.56 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003738/0.1208, allocations: 119.8 kB / 446.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.1212, allocations: 354.8 kB / 446.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.1214, allocations: 72.31 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.1216, allocations: 139.6 kB / 447.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.1219, allocations: 151.4 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.122, allocations: 28 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.478e-05/0.122, allocations: 32 kB / 447.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1222, allocations: 83.78 kB / 447.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.1223, allocations: 127.4 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.1227, allocations: 283.1 kB / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.1227, allocations: 0 / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.299e-06/0.1228, allocations: 7.938 kB / 447.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.1228, allocations: 0 / 447.8 MB, free: 12.17 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001266/0.124, allocations: 0.5728 MB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.1241, allocations: 8.031 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.778e-05/0.1242, allocations: 32.66 kB / 448.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.1246, allocations: 248.5 kB / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.1248, allocations: 134.2 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.356e-05/0.1249, allocations: 31.84 kB / 448.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008417/0.1257, allocations: 367.6 kB / 449.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.1258, allocations: 0 / 449.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.1258, allocations: 8 kB / 449.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.1258, allocations: 8 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.1272, allocations: 0.4901 MB / 449.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.129, allocations: 1.007 MB / 450.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.1302, allocations: 339 kB / 451.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005062/0.1307, allocations: 177.2 kB / 451.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.1308, allocations: 4.234 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.1308, allocations: 46.73 kB / 451.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.1308, allocations: 0 / 451.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02772/0.1585, allocations: 5.801 MB / 457.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.1587, allocations: 63.77 kB / 457.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/0.159, allocations: 203 kB / 457.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.053e-05/0.1591, allocations: 33.7 kB / 457.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1592, allocations: 148.7 kB / 457.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1594, allocations: 177.5 kB / 457.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.1596, allocations: 90.17 kB / 457.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1598, allocations: 342.8 kB / 458.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.1612, allocations: 464.8 kB / 458.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.1626, allocations: 0.5099 MB / 459.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.1651, allocations: 0.8032 MB / 459.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.1651, allocations: 0 / 459.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002872/0.168, allocations: 0.9905 MB / 460.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.168, allocations: 11.94 kB / 460.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.168, allocations: 0 / 460.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.203e-05/0.1681, allocations: 7.984 kB / 460.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.1691, allocations: 171.7 kB / 461.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.1691, allocations: 0 / 461.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007104/0.1698, allocations: 87.92 kB / 461.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.1699, allocations: 16 kB / 461.2 MB, free: 14.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002755/0.1702, allocations: 161.7 kB / 461.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.875e-05/0.1703, allocations: 31.59 kB / 461.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.1704, allocations: 51.3 kB / 461.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.1705, allocations: 8 kB / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1705, allocations: 7.938 kB / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1705, allocations: 0 / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00433/0.1748, allocations: 1.882 MB / 463.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.1749, allocations: 8 kB / 463.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.1755, allocations: 144.3 kB / 463.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.318e-05/0.1756, allocations: 15.94 kB / 463.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.1757, allocations: 23.98 kB / 463.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.822e-05/0.1757, allocations: 11.94 kB / 463.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.561e-05/0.1757, allocations: 15.94 kB / 463.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.1788, allocations: 1.217 MB / 464.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.1791, allocations: 148.8 kB / 464.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.13e-05/0.1791, allocations: 16 kB / 464.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005373/0.1797, allocations: 71.92 kB / 465 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.1799, allocations: 95.56 kB / 465.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.1799, allocations: 28 kB / 465.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.1801, allocations: 147.5 kB / 465.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1802, allocations: 3.938 kB / 465.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005599/0.1807, allocations: 96 kB / 465.3 MB, free: 9.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001897/0.1809, allocations: 123.1 kB / 465.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002537/0.1835, allocations: 0.8531 MB / 466.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.1835, allocations: 12.19 kB / 466.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000956/0.1844, allocations: 329.7 kB / 466.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.1851, allocations: 59.91 kB / 466.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.1877, allocations: 1.006 MB / 467.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.1882, allocations: 0.784 MB / 468.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000405/0.1886, allocations: 79.19 kB / 468.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000209/0.1888, allocations: 27.44 kB / 468.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of SimCode: time 3.046e-06/0.1889, allocations: 4 kB / 468.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of Templates: time 0.01372/0.2026, allocations: 5.771 MB / 474.4 MB, free: 0.7578 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches