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.001489/0.001488, 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.001787/0.001787, 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.628/1.628, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07806/0.07806, allocations: 12.6 MB / 283.2 MB, free: 15.38 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.001875/0.001875, allocations: 92.72 kB / 394.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1176, allocations: 49.4 MB / 443.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.003838/0.1215, allocations: 2.141 MB / 445.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.123, allocations: 0.6909 MB / 446.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1231, allocations: 7.938 kB / 446.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.1235, allocations: 43.7 kB / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.1236, allocations: 55.55 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.1241, allocations: 119.8 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004101/0.1245, allocations: 342.9 kB / 446.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.1247, allocations: 84.22 kB / 447 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.1249, allocations: 143.6 kB / 447.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1252, allocations: 151.3 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.1252, allocations: 28 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.084e-05/0.1253, allocations: 32 kB / 447.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.1254, allocations: 87.77 kB / 447.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1256, allocations: 115.4 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004035/0.126, allocations: 287.1 kB / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.126, allocations: 0 / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.126, allocations: 4 kB / 447.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.126, allocations: 3.938 kB / 447.8 MB, free: 12.18 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.001274/0.1273, allocations: 0.5727 MB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1273, allocations: 8.031 kB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.1274, allocations: 32.66 kB / 448.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.1279, allocations: 252.5 kB / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/0.1282, allocations: 134.2 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/0.1283, allocations: 35.83 kB / 448.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.1291, allocations: 367.5 kB / 449.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1292, allocations: 0 / 449.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.1292, allocations: 8 kB / 449.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1292, allocations: 8 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.1305, allocations: 497.9 kB / 449.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.1323, allocations: 1.011 MB / 450.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.1335, allocations: 331.1 kB / 451.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/0.1341, allocations: 185.2 kB / 451.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.1341, allocations: 4.234 kB / 451.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.1342, allocations: 34.8 kB / 451.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.764e-06/0.1342, allocations: 0 / 451.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02765/0.1618, allocations: 5.809 MB / 457.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.1619, allocations: 63.78 kB / 457.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.1622, allocations: 203 kB / 457.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.1623, allocations: 37.7 kB / 457.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1624, allocations: 148.7 kB / 457.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.1626, allocations: 173.5 kB / 457.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.1628, allocations: 90.16 kB / 457.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1629, allocations: 338.8 kB / 458.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.1642, allocations: 472.8 kB / 458.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.1655, allocations: 0.506 MB / 459.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002371/0.1679, allocations: 0.8071 MB / 459.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1679, allocations: 0 / 459.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002844/0.1708, allocations: 0.9905 MB / 460.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.1708, allocations: 11.94 kB / 460.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.1708, allocations: 0 / 460.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.1709, allocations: 4 kB / 460.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009842/0.1719, allocations: 171.7 kB / 461.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.1719, allocations: 4 kB / 461.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007034/0.1726, allocations: 83.92 kB / 461.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.864e-05/0.1727, 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.0002657/0.1729, allocations: 161.6 kB / 461.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.173, allocations: 31.66 kB / 461.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.1732, allocations: 51.25 kB / 461.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.1732, allocations: 7.984 kB / 461.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.1732, allocations: 4 kB / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1732, allocations: 0 / 461.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/0.1774, allocations: 1.878 MB / 463.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.1774, allocations: 8 kB / 463.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006438/0.1781, allocations: 144.4 kB / 463.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.608e-05/0.1781, allocations: 15.94 kB / 463.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.502e-05/0.1782, allocations: 24 kB / 463.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.588e-05/0.1782, allocations: 15.92 kB / 463.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.1782, allocations: 15.94 kB / 463.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.181, allocations: 1.217 MB / 464.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.1812, allocations: 140.8 kB / 464.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.1812, allocations: 23.98 kB / 464.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/0.1818, allocations: 75.92 kB / 465 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.182, allocations: 95.56 kB / 465.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.1821, allocations: 20 kB / 465.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002005/0.1823, allocations: 147.5 kB / 465.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1823, allocations: 0 / 465.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005583/0.1828, allocations: 100 kB / 465.3 MB, free: 9.984 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.0002028/0.1831, allocations: 119.1 kB / 465.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.1855, allocations: 0.8647 MB / 466.3 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.1856, allocations: 8.25 kB / 466.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.1866, allocations: 329.7 kB / 466.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006806/0.1873, allocations: 59.84 kB / 466.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.1894, allocations: 1.013 MB / 467.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.1898, allocations: 0.784 MB / 468.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003828/0.1902, 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.0002093/0.1904, allocations: 31.44 kB / 468.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of SimCode: time 1.81e-07/0.1904, allocations: 0 / 468.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of Templates: time 0.01085/0.2013, allocations: 5.92 MB / 474.5 MB, free: 0.6133 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