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.001673/0.001673, allocations: 106.1 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.002039/0.002039, allocations: 186.4 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.563/1.563, 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.08344/0.08344, allocations: 12.58 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.002019/0.002019, allocations: 81.06 kB / 394.1 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1191, allocations: 49.4 MB / 443.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.00401/0.1231, allocations: 2.144 MB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.1249, allocations: 0.7025 MB / 446.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.1253, allocations: 4 kB / 446.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.1256, allocations: 43.64 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.1258, allocations: 51.62 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.1263, allocations: 127.8 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000458/0.1268, allocations: 339 kB / 446.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.127, allocations: 84.22 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.1273, allocations: 147.5 kB / 447.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1275, allocations: 147.4 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.55e-05/0.1276, allocations: 28 kB / 447.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.259e-05/0.1277, allocations: 32 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1278, allocations: 87.77 kB / 447.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1279, allocations: 119.4 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.1283, allocations: 283 kB / 447.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1283, allocations: 4 kB / 447.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1283, allocations: 4 kB / 447.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.1283, allocations: 0 / 447.9 MB, free: 12.16 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.00124/0.1296, allocations: 0.5689 MB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1296, allocations: 8.031 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1297, allocations: 32.66 kB / 448.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004033/0.1301, allocations: 256.5 kB / 448.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/0.1304, allocations: 134.2 kB / 448.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.1304, allocations: 31.84 kB / 448.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008436/0.1313, allocations: 367.5 kB / 449.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1313, allocations: 0 / 449.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.1314, allocations: 12 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1314, allocations: 4 kB / 449.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.1326, allocations: 0.4901 MB / 449.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.1345, allocations: 0.9994 MB / 450.7 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.1357, allocations: 343 kB / 451.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.1361, allocations: 181.2 kB / 451.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.993e-05/0.1362, allocations: 240 / 451.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.1362, allocations: 42.73 kB / 451.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.503e-06/0.1362, allocations: 0 / 451.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.0252/0.1615, allocations: 5.801 MB / 457.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.1616, allocations: 63.83 kB / 457.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.1619, allocations: 199 kB / 457.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.162, allocations: 37.7 kB / 457.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1621, allocations: 148.7 kB / 457.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.1623, allocations: 177.5 kB / 457.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.1625, allocations: 86.17 kB / 457.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1627, allocations: 342.8 kB / 458.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.1639, allocations: 468.8 kB / 458.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.1651, allocations: 0.5099 MB / 459.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002151/0.1672, allocations: 0.8071 MB / 459.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1672, allocations: 4 kB / 459.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002706/0.17, allocations: 0.9866 MB / 460.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.17, allocations: 11.94 kB / 460.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.17, allocations: 0 / 460.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.379e-05/0.1701, allocations: 4 kB / 460.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000965/0.171, allocations: 167.8 kB / 461.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.136e-05/0.1711, allocations: 4 kB / 461.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.1717, allocations: 87.86 kB / 461.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.1718, 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.0002462/0.1721, allocations: 157.7 kB / 461.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.1722, allocations: 31.66 kB / 461.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.1723, allocations: 51.3 kB / 461.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1723, allocations: 7.938 kB / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1723, allocations: 0 / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1723, allocations: 0 / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005595/0.1779, allocations: 1.886 MB / 463.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.751e-05/0.178, allocations: 8 kB / 463.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/0.1789, allocations: 143.8 kB / 463.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.838e-05/0.1789, allocations: 19.92 kB / 463.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-05/0.179, allocations: 20 kB / 463.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.288e-05/0.179, allocations: 20.28 kB / 463.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/0.179, allocations: 8 kB / 463.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.1829, allocations: 1.217 MB / 464.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.1832, allocations: 148.8 kB / 464.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.184e-05/0.1833, allocations: 20 kB / 464.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.1841, allocations: 75.92 kB / 465 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.1843, allocations: 91.62 kB / 465.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.32e-05/0.1844, allocations: 20 kB / 465.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000257/0.1847, allocations: 147.5 kB / 465.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1847, allocations: 7.875 kB / 465.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000904/0.1856, allocations: 96 kB / 465.3 MB, free: 9.977 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.0002382/0.1858, allocations: 123.1 kB / 465.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003468/0.1893, allocations: 0.8648 MB / 466.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.1894, allocations: 0 / 466.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.1908, allocations: 329.9 kB / 466.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.1919, allocations: 59.92 kB / 466.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.1954, allocations: 1.013 MB / 467.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.1959, allocations: 0.7762 MB / 468.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006528/0.1966, allocations: 83.19 kB / 468.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003216/0.1969, allocations: 31.44 kB / 468.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.1969, allocations: 0 / 468.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of Templates: time 0.01608/0.213, allocations: 5.779 MB / 474.4 MB, free: 0.7539 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