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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009711/0.0009711, allocations: 168.9 kB / 16.8 MB, free: 4.996 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.4 MB / 223 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008659/0.000866, allocations: 97.48 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07126/0.07126, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 12 kB / 393.3 MB, free: 65.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09334, allocations: 50.38 MB / 443.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002565/0.09596, allocations: 1.848 MB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.09704, allocations: 0.6675 MB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.09716, allocations: 4 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.09742, allocations: 47.75 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.09755, allocations: 35.77 kB / 446.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.09785, allocations: 107.8 kB / 446.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.09813, allocations: 327.2 kB / 446.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.09829, allocations: 64.39 kB / 446.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.09845, allocations: 127.5 kB / 446.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.09863, allocations: 135.5 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.09868, allocations: 16 kB / 447 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.572e-05/0.09872, allocations: 20 kB / 447.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.828e-05/0.0988, allocations: 71.73 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.106e-05/0.0989, allocations: 133.1 kB / 447.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.09906, allocations: 195.4 kB / 447.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.09907, allocations: 0 / 447.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.09908, allocations: 0 / 447.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.0991, allocations: 4 kB / 447.5 MB, free: 11.63 MB / 298.7 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.001093/0.1002, allocations: 0.5534 MB / 448 MB, free: 11.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1002, allocations: 8.031 kB / 448 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.231e-05/0.1003, allocations: 36.59 kB / 448.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.1006, allocations: 252.4 kB / 448.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.1009, allocations: 150.1 kB / 448.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.911e-05/0.101, allocations: 27.94 kB / 448.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.1021, allocations: 371.6 kB / 448.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.1021, allocations: 11.94 kB / 448.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.1021, allocations: 7.984 kB / 448.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.1022, allocations: 8 kB / 448.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.1039, allocations: 0.5097 MB / 449.4 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.106, allocations: 1.03 MB / 450.4 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.1075, allocations: 351.1 kB / 450.7 MB, free: 8.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006364/0.1082, allocations: 189.2 kB / 450.9 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.1083, allocations: 4.234 kB / 450.9 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.1083, allocations: 34.8 kB / 451 MB, free: 7.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.707e-06/0.1083, allocations: 7.938 kB / 451 MB, free: 7.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02945/0.1377, allocations: 6.671 MB / 457.6 MB, free: 1.137 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1378, allocations: 59.84 kB / 457.7 MB, free: 1.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.1381, allocations: 190.3 kB / 457.9 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.1381, allocations: 37.7 kB / 457.9 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.394e-05/0.1382, allocations: 152.6 kB / 458.1 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.1383, allocations: 177.5 kB / 458.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.1384, allocations: 8 kB / 458.3 MB, free: 500 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.1384, allocations: 342.8 kB / 458.6 MB, free: 148 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.1397, allocations: 496.8 kB / 459.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.1411, allocations: 0.5568 MB / 459.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002393/0.1435, allocations: 0.8775 MB / 460.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1435, allocations: 4 kB / 460.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002824/0.1463, allocations: 1.061 MB / 461.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.1464, allocations: 7.938 kB / 461.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.1464, allocations: 0 / 461.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1464, allocations: 4 kB / 461.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009738/0.1474, allocations: 187.8 kB / 461.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1474, allocations: 8 kB / 461.8 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006991/0.1481, allocations: 111.9 kB / 461.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.1482, allocations: 16 kB / 461.9 MB, free: 12.8 MB / 314.7 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.moving[1],kinematicPTP.noWphase) * 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.0002445/0.1485, allocations: 158 kB / 462.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.443e-05/0.1485, allocations: 31.64 kB / 462.1 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.977e-05/0.1487, allocations: 47.31 kB / 462.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.1487, allocations: 4 kB / 462.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.1487, allocations: 0 / 462.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.1487, allocations: 3.984 kB / 462.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004255/0.153, allocations: 2.006 MB / 464.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.153, allocations: 8 kB / 464.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006499/0.1537, allocations: 167.7 kB / 464.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.22e-05/0.1537, allocations: 19.88 kB / 464.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/0.1537, allocations: 24 kB / 464.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-05/0.1538, allocations: 23.92 kB / 464.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.1538, allocations: 11.94 kB / 464.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002903/0.1567, allocations: 1.326 MB / 465.7 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.157, allocations: 152.7 kB / 465.9 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.157, allocations: 23.98 kB / 465.9 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005222/0.1576, allocations: 87.92 kB / 466 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.1578, allocations: 91.66 kB / 466.1 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.359e-05/0.1579, allocations: 24 kB / 466.1 MB, free: 8.281 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001778/0.1581, allocations: 148.3 kB / 466.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1581, allocations: 0 / 466.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004785/0.1585, allocations: 96 kB / 466.3 MB, free: 8.043 MB / 314.7 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.0001493/0.1587, allocations: 131.1 kB / 466.5 MB, free: 7.906 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.1611, allocations: 0.9274 MB / 467.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1611, allocations: 0 / 467.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009696/0.1621, allocations: 365.7 kB / 467.7 MB, free: 6.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007315/0.1628, allocations: 55.97 kB / 467.8 MB, free: 6.566 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.1651, allocations: 1.232 MB / 469 MB, free: 5.199 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1655, allocations: 0.7804 MB / 469.8 MB, free: 4.395 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.1658, allocations: 35.44 kB / 469.8 MB, free: 4.359 MB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1658, allocations: 0 / 469.8 MB, free: 4.359 MB / 314.7 MB Notification: Performance of Templates: time 0.007979/0.1737, allocations: 5.514 MB / 475.4 MB, free: 14.84 MB / 330.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches