Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 173.5 kB / 16.8 MB, free: 5.008 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.523/1.523, allocations: 205.4 MB / 223 MB, free: 8.922 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.0006765/0.0006763, allocations: 90.03 kB / 271.3 MB, free: 8.234 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.07057/0.07057, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005135/0.0005135, allocations: 8 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09178, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002191/0.09403, allocations: 2.031 MB / 445.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.0955, allocations: 0.8154 MB / 446.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.09577, allocations: 4 kB / 446.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.09609, allocations: 51.7 kB / 446.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.09638, allocations: 39.75 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005954/0.09699, allocations: 155.7 kB / 446.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.09743, allocations: 367.5 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.09768, allocations: 91.83 kB / 447.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.09796, allocations: 123.5 kB / 447.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.09822, allocations: 163.2 kB / 447.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.842e-05/0.09829, allocations: 16 kB / 447.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.903e-05/0.09834, allocations: 19.94 kB / 447.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.382e-05/0.09844, allocations: 75.77 kB / 447.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.09857, allocations: 153 kB / 447.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.09884, allocations: 231.7 kB / 448 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.09886, allocations: 0 / 448 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.09888, allocations: 0 / 448 MB, free: 11.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.09889, allocations: 4 kB / 448 MB, free: 11.09 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001075/0.09998, allocations: 0.5811 MB / 448.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1, allocations: 8.031 kB / 448.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.1001, allocations: 40.56 kB / 448.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.1005, allocations: 273.2 kB / 448.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.1007, allocations: 146.3 kB / 449 MB, free: 9.945 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.1008, allocations: 32.28 kB / 449.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.1018, allocations: 0.5856 MB / 449.6 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.1019, allocations: 7.922 kB / 449.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.1019, allocations: 12 kB / 449.7 MB, free: 9.281 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1019, allocations: 8 kB / 449.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.1032, allocations: 0.5308 MB / 450.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.1045, allocations: 1.037 MB / 451.2 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.106, allocations: 0.5155 MB / 451.8 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.1066, allocations: 275.3 kB / 452 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.473e-05/0.1067, allocations: 12.12 kB / 452 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.1067, allocations: 38.56 kB / 452.1 MB, free: 6.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.575e-06/0.1067, allocations: 0 / 452.1 MB, free: 6.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03686/0.1436, allocations: 6.753 MB / 458.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.1438, allocations: 145 kB / 459 MB, free: 15.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.1441, allocations: 199.4 kB / 459.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.702e-05/0.1442, allocations: 37.64 kB / 459.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1443, allocations: 145.5 kB / 459.3 MB, free: 15.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.1445, allocations: 189.3 kB / 459.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.601e-05/0.1446, allocations: 12 kB / 459.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1448, allocations: 346.8 kB / 459.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.1464, allocations: 0.65 MB / 460.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.1482, allocations: 0.8354 MB / 461.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003169/0.1514, allocations: 1.329 MB / 462.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1514, allocations: 0 / 462.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003665/0.1551, allocations: 1.472 MB / 464.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.1551, allocations: 11.98 kB / 464.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.1551, allocations: 4 kB / 464.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.476e-05/0.1552, allocations: 8 kB / 464.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.1566, allocations: 231.7 kB / 464.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.1566, allocations: 8 kB / 464.4 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.1576, allocations: 132.1 kB / 464.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.444e-05/0.1577, allocations: 24.31 kB / 464.6 MB, free: 9.996 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003677/0.1581, allocations: 185.5 kB / 464.8 MB, free: 9.805 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003577/0.1585, allocations: 173 kB / 464.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.1587, allocations: 59.3 kB / 465 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.1587, allocations: 8 kB / 465 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.1587, allocations: 4 kB / 465 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.1587, allocations: 3.984 kB / 465 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005149/0.1639, allocations: 2.289 MB / 467.3 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/0.1639, allocations: 12.03 kB / 467.3 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.1647, allocations: 203.7 kB / 467.5 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.589e-05/0.1648, allocations: 20 kB / 467.5 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.337e-05/0.1648, allocations: 24 kB / 467.5 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.88e-05/0.1649, allocations: 23.92 kB / 467.6 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/0.1649, allocations: 15.94 kB / 467.6 MB, free: 6.785 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00328/0.1682, allocations: 1.662 MB / 469.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.1684, allocations: 164.6 kB / 469.4 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.455e-05/0.1685, allocations: 27.98 kB / 469.4 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/0.1691, allocations: 95.98 kB / 469.5 MB, free: 4.676 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.1693, allocations: 91.66 kB / 469.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.766e-05/0.1694, allocations: 36 kB / 469.6 MB, free: 4.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1695, allocations: 141.2 kB / 469.8 MB, free: 4.414 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1695, allocations: 0 / 469.8 MB, free: 4.414 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006718/0.1702, allocations: 124 kB / 469.9 MB, free: 4.293 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001666/0.1704, allocations: 138.9 kB / 470 MB, free: 4.148 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002893/0.1733, allocations: 1.191 MB / 471.2 MB, free: 2.953 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.1733, allocations: 4 kB / 471.2 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.1743, allocations: 382.2 kB / 471.6 MB, free: 2.578 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.1754, allocations: 144.1 kB / 471.8 MB, free: 2.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.1778, allocations: 1.402 MB / 473.2 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.1782, allocations: 0.8129 MB / 474 MB, free: 28 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004229/0.1787, allocations: 47.47 kB / 474 MB, free: 15.98 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1787, allocations: 0 / 474 MB, free: 15.98 MB / 330.7 MB Notification: Performance of Templates: time 0.012/0.1907, allocations: 7.124 MB / 481.1 MB, free: 8.828 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.y,angle.phi,gain.y,speed.w,time