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.001257/0.001257, allocations: 94.36 kB / 16.3 MB, free: 5.625 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.001499/0.001499, allocations: 183.2 kB / 17.2 MB, free: 5.559 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.318/1.318, allocations: 223.2 MB / 241.1 MB, free: 5.191 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002523, allocations: 8.219 kB / 300.7 MB, free: 5.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09471, allocations: 50.42 MB / 351.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002344/0.0971, allocations: 1.932 MB / 353.1 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.09825, allocations: 0.772 MB / 353.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.09838, allocations: 7.938 kB / 353.8 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.0986, allocations: 35.77 kB / 353.9 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.09877, allocations: 55.81 kB / 353.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.09915, allocations: 143.6 kB / 354.1 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.0994, allocations: 220.1 kB / 354.3 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.09958, allocations: 86.09 kB / 354.4 MB, free: 8.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.09976, allocations: 135.5 kB / 354.5 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.09995, allocations: 151.4 kB / 354.6 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.09999, allocations: 16 kB / 354.7 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.751e-05/0.1, allocations: 16 kB / 354.7 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.563e-05/0.1001, allocations: 67.78 kB / 354.7 MB, free: 7.742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.86e-05/0.1002, allocations: 73.52 kB / 354.8 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.1004, allocations: 227.4 kB / 355 MB, free: 7.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.1004, allocations: 0 / 355 MB, free: 7.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1004, allocations: 4 kB / 355 MB, free: 7.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1004, allocations: 0 / 355 MB, free: 7.438 MB / 286.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.001003/0.1014, allocations: 0.5848 MB / 355.6 MB, free: 6.805 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.1015, allocations: 8.031 kB / 355.6 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.1016, allocations: 47.52 kB / 355.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.1019, allocations: 271.1 kB / 355.9 MB, free: 6.441 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.1021, allocations: 141.7 kB / 356.1 MB, free: 6.281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.1021, allocations: 27.91 kB / 356.1 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.1032, allocations: 0.5738 MB / 356.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.1033, allocations: 3.984 kB / 356.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.496e-05/0.1033, allocations: 12 kB / 356.7 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1033, allocations: 8 kB / 356.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.1047, allocations: 0.5347 MB / 357.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.1061, allocations: 1.022 MB / 358.3 MB, free: 4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.1076, allocations: 0.5186 MB / 358.8 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.1076, allocations: 8.125 kB / 358.8 MB, free: 3.438 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1077, allocations: 42.75 kB / 358.8 MB, free: 3.387 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.1077, allocations: 0 / 358.8 MB, free: 3.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03664/0.1443, allocations: 6.75 MB / 365.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1445, allocations: 145 kB / 365.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.1447, allocations: 199.4 kB / 365.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-05/0.1448, allocations: 41.7 kB / 366 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.095e-05/0.1448, allocations: 137.5 kB / 366.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.145, allocations: 197.3 kB / 366.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.494e-05/0.1451, allocations: 16 kB / 366.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1452, allocations: 338.8 kB / 366.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.1467, allocations: 0.6539 MB / 367.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.1484, allocations: 0.8276 MB / 368.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.1498, allocations: 0.6098 MB / 368.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1498, allocations: 0 / 368.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003309/0.1532, allocations: 1.464 MB / 370.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1532, allocations: 8 kB / 370.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1532, allocations: 8 kB / 370.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.1532, allocations: 8.609 kB / 370.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.1545, allocations: 231.7 kB / 370.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.1545, allocations: 15.92 kB / 370.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000894/0.1554, allocations: 119.7 kB / 370.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.569e-05/0.1555, allocations: 35.86 kB / 370.6 MB, free: 7.457 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.000309/0.1558, allocations: 193.5 kB / 370.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/0.1561, allocations: 153.1 kB / 370.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/0.1563, allocations: 63.31 kB / 371 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1563, allocations: 8 kB / 371 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1563, allocations: 0 / 371 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.1563, allocations: 7.984 kB / 371 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/0.1607, allocations: 2.285 MB / 373.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.1608, allocations: 12 kB / 373.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007131/0.1615, allocations: 204.3 kB / 373.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.555e-05/0.1615, allocations: 16 kB / 373.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.1616, allocations: 24 kB / 373.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.147e-05/0.1616, allocations: 15.94 kB / 373.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/0.1616, allocations: 15.94 kB / 373.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003348/0.1649, allocations: 2.177 MB / 375.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.1651, allocations: 164.7 kB / 375.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.991e-05/0.1652, allocations: 27.94 kB / 375.9 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000563/0.1658, allocations: 99.97 kB / 376 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.166, allocations: 99.66 kB / 376.1 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.166, allocations: 40 kB / 376.2 MB, free: 1.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.1661, allocations: 141.2 kB / 376.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1661, allocations: 0 / 376.3 MB, free: 1.098 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006297/0.1668, allocations: 120 kB / 376.4 MB, free: 0.9805 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.0001702/0.1669, allocations: 142.9 kB / 376.6 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002627/0.1696, allocations: 1.186 MB / 377.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1696, allocations: 0 / 377.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00092/0.1705, allocations: 383.1 kB / 378.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.1711, allocations: 129.1 kB / 378.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.1732, allocations: 1.331 MB / 379.6 MB, free: 13.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.1735, allocations: 0.8167 MB / 380.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005234/0.174, allocations: 95.36 kB / 380.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.1743, allocations: 51.36 kB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1743, allocations: 0 / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of Templates: time 0.01129/0.1856, allocations: 7.266 MB / 387.8 MB, free: 5.41 MB / 318.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","../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