Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 90.77 kB / 16.31 MB, free: 5.672 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.001354/0.001354, allocations: 184.5 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002773, allocations: 8.531 kB / 300.8 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1282, allocations: 50.42 MB / 351.2 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003111/0.1313, allocations: 1.949 MB / 353.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1331, allocations: 0.772 MB / 354 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.1334, allocations: 4 kB / 354 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.1337, allocations: 43.7 kB / 354 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.134, allocations: 43.73 kB / 354 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.1345, allocations: 151.7 kB / 354.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.1349, allocations: 335.6 kB / 354.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.1352, allocations: 92.94 kB / 354.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.1354, allocations: 127.5 kB / 354.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1356, allocations: 147.4 kB / 354.9 MB, free: 364 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.1357, allocations: 16 kB / 354.9 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.085e-05/0.1357, allocations: 16 kB / 354.9 MB, free: 332 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1358, allocations: 71.77 kB / 355 MB, free: 260 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.877e-05/0.1359, allocations: 77.52 kB / 355.1 MB, free: 176 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.1362, allocations: 223.7 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1362, allocations: 4 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1362, allocations: 0 / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1362, allocations: 0 / 355.3 MB, free: 15.95 MB / 302.1 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.001159/0.1374, allocations: 0.5887 MB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1374, allocations: 12.03 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.053e-05/0.1375, allocations: 39.58 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.1379, allocations: 267.1 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.1381, allocations: 145.7 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.1381, allocations: 31.91 kB / 356.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.1393, allocations: 0.5738 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1393, allocations: 3.984 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1394, allocations: 12 kB / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1394, allocations: 8 kB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.1407, allocations: 0.5269 MB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.1423, allocations: 1.022 MB / 358.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.1438, allocations: 0.5185 MB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005923/0.1444, allocations: 274.8 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.914e-05/0.1445, allocations: 12.11 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.1446, allocations: 38.75 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.1446, allocations: 0 / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03541/0.18, allocations: 6.756 MB / 366.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.1802, allocations: 145 kB / 366.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.1804, allocations: 204.1 kB / 366.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.107e-05/0.1805, allocations: 33.7 kB / 366.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1806, allocations: 145.5 kB / 366.6 MB, free: 4.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.1809, allocations: 185.4 kB / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.181, allocations: 16 kB / 366.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.1812, allocations: 342.8 kB / 367.1 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.1827, allocations: 0.6461 MB / 367.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.1845, allocations: 0.8393 MB / 368.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.1861, allocations: 0.6059 MB / 369.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1861, allocations: 0 / 369.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003654/0.1898, allocations: 1.464 MB / 370.7 MB, free: 112 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.1899, allocations: 8 kB / 370.7 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.851e-05/0.1899, allocations: 8.031 kB / 370.7 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.894e-05/0.1899, allocations: 19.97 kB / 370.7 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2003/0.3903, allocations: 222.5 kB / 370.9 MB, free: 25.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.898e-05/0.3904, allocations: 14.27 kB / 371 MB, free: 25.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009722/0.3913, allocations: 123.7 kB / 371.1 MB, free: 25.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.958e-05/0.3914, allocations: 29.41 kB / 371.1 MB, free: 25.58 MB / 302.1 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.0003539/0.3918, allocations: 181.8 kB / 371.3 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003551/0.3922, allocations: 152.5 kB / 371.4 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.3924, allocations: 61.72 kB / 371.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.3924, allocations: 13.22 kB / 371.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.3924, allocations: 2.062 kB / 371.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3924, allocations: 8.719 kB / 371.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004817/0.3973, allocations: 2.287 MB / 373.8 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.828e-05/0.3973, allocations: 10.77 kB / 373.8 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/0.3981, allocations: 202.9 kB / 374 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.045e-05/0.3981, allocations: 19 kB / 374 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.3982, allocations: 29 kB / 374.1 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.777e-05/0.3982, allocations: 20.59 kB / 374.1 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-05/0.3982, allocations: 19.56 kB / 374.1 MB, free: 24.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.4012, allocations: 1.658 MB / 375.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.4014, allocations: 159.5 kB / 375.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.525e-05/0.4015, allocations: 33.7 kB / 375.9 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005609/0.402, allocations: 99.22 kB / 376 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.4023, allocations: 104.2 kB / 376.1 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.4023, allocations: 28.75 kB / 376.2 MB, free: 23.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.4024, allocations: 139.5 kB / 376.3 MB, free: 23.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4025, allocations: 4 kB / 376.3 MB, free: 23.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007048/0.4032, allocations: 122.9 kB / 376.4 MB, free: 23.71 MB / 302.1 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.0001487/0.4033, allocations: 134.9 kB / 376.6 MB, free: 23.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.4059, allocations: 1.19 MB / 377.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.4059, allocations: 2.75 kB / 377.8 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.4069, allocations: 380.6 kB / 378.1 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008981/0.4078, allocations: 135.2 kB / 378.3 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.41, allocations: 1.338 MB / 379.6 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4103, allocations: 0.8144 MB / 380.4 MB, free: 21.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005892/0.4109, allocations: 90.84 kB / 380.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.4112, allocations: 38.56 kB / 380.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4112, allocations: 0 / 380.5 MB, free: 21.29 MB / 302.1 MB Notification: Performance of Templates: time 0.01374/0.4249, allocations: 7.308 MB / 387.8 MB, free: 18.67 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time