Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.00229/0.00229, allocations: 176.1 kB / 16.77 MB, free: 4.922 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.68/1.68, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008755/0.0008756, allocations: 94.34 kB / 271.3 MB, free: 8.246 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.07062/0.07062, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004044, allocations: 12 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08806, allocations: 50.38 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002009/0.0901, allocations: 1.95 MB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009476/0.09106, allocations: 0.8002 MB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.0912, allocations: 7.938 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.09143, allocations: 43.75 kB / 445.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.09158, allocations: 43.7 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003524/0.09194, allocations: 139.8 kB / 445.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002476/0.0922, allocations: 339.6 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.09236, allocations: 91.83 kB / 446.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.09253, allocations: 131.5 kB / 446.5 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.09269, allocations: 147.4 kB / 446.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.09274, allocations: 16 kB / 446.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.39e-05/0.09278, allocations: 16 kB / 446.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.09285, allocations: 75.72 kB / 446.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.658e-05/0.09296, allocations: 153 kB / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.09312, allocations: 227.7 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.09314, allocations: 4 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09314, allocations: 0 / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.09316, allocations: 0 / 447.1 MB, free: 11.95 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.000887/0.09405, allocations: 0.585 MB / 447.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.09409, allocations: 12.03 kB / 447.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.825e-05/0.09416, allocations: 40.56 kB / 447.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.09442, allocations: 269.2 kB / 448 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.0946, allocations: 146.3 kB / 448.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.09466, allocations: 36.28 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009658/0.09563, allocations: 0.5778 MB / 448.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.09566, allocations: 4 kB / 448.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.0957, allocations: 8 kB / 448.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.09572, allocations: 8 kB / 448.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.09687, allocations: 0.5347 MB / 449.3 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.09807, allocations: 1.025 MB / 450.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.09936, allocations: 0.5142 MB / 450.9 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004936/0.09986, allocations: 279.3 kB / 451.1 MB, free: 7.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.09992, allocations: 12.14 kB / 451.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.09995, allocations: 38.56 kB / 451.2 MB, free: 7.605 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.09996, allocations: 0 / 451.2 MB, free: 7.605 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03249/0.1325, allocations: 6.749 MB / 457.9 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.1326, allocations: 145 kB / 458.1 MB, free: 0.668 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.1327, allocations: 203.3 kB / 458.3 MB, free: 468 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.1328, allocations: 37.7 kB / 458.3 MB, free: 424 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.1329, allocations: 141.5 kB / 458.4 MB, free: 280 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.133, allocations: 189.7 kB / 458.6 MB, free: 88 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/0.1331, allocations: 20 kB / 458.6 MB, free: 68 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1333, allocations: 342.8 kB / 459 MB, free: 15.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.1348, allocations: 0.65 MB / 459.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.1363, allocations: 0.8315 MB / 460.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.1391, allocations: 1.334 MB / 461.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1391, allocations: 0 / 461.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00336/0.1425, allocations: 1.464 MB / 463.3 MB, free: 11.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.1426, allocations: 4 kB / 463.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1426, allocations: 12.03 kB / 463.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.1426, allocations: 8 kB / 463.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.1439, allocations: 239.6 kB / 463.5 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.1439, allocations: 8 kB / 463.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008643/0.1448, allocations: 123.7 kB / 463.6 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.484e-05/0.1449, allocations: 28 kB / 463.7 MB, free: 10.87 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003302/0.1452, allocations: 185.4 kB / 463.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/0.1456, allocations: 153.1 kB / 464 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.1457, allocations: 67.3 kB / 464.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.1458, allocations: 8 kB / 464.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1458, allocations: 0 / 464.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1458, allocations: 7.984 kB / 464.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004684/0.1505, allocations: 2.289 MB / 466.4 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.1505, allocations: 12 kB / 466.4 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.1512, allocations: 203.8 kB / 466.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.726e-05/0.1513, allocations: 16 kB / 466.6 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.1513, allocations: 20 kB / 466.6 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.962e-05/0.1513, allocations: 23.92 kB / 466.6 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-05/0.1514, allocations: 15.94 kB / 466.7 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.1544, allocations: 1.654 MB / 468.3 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.1546, allocations: 164.6 kB / 468.5 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/0.1547, allocations: 28.19 kB / 468.5 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/0.1552, allocations: 95.97 kB / 468.6 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.1554, allocations: 107.6 kB / 468.7 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.1555, allocations: 36 kB / 468.7 MB, free: 5.438 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001406/0.1556, allocations: 137.2 kB / 468.9 MB, free: 5.305 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1557, allocations: 0 / 468.9 MB, free: 5.305 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006729/0.1563, allocations: 120 kB / 469 MB, free: 5.188 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001655/0.1565, allocations: 142.9 kB / 469.1 MB, free: 5.039 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.1592, allocations: 1.19 MB / 470.3 MB, free: 3.844 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1592, allocations: 448 / 470.3 MB, free: 3.844 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009727/0.1602, allocations: 377.9 kB / 470.7 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.1613, allocations: 144.1 kB / 470.8 MB, free: 3.336 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.1637, allocations: 1.375 MB / 472.2 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.1642, allocations: 0.8129 MB / 473 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.1645, allocations: 43.42 kB / 473.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1645, allocations: 0 / 473.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of Templates: time 0.01043/0.175, allocations: 7.117 MB / 480.2 MB, free: 9.766 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_cpp_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