Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001142, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001427/0.001427, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.418/1.418, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 50.7 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1113, allocations: 49.44 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003764/0.1151, allocations: 2.145 MB / 352.9 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.1164, allocations: 0.651 MB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1166, allocations: 7.938 kB / 353.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.1169, allocations: 43.7 kB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.1172, allocations: 55.56 kB / 353.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.1176, allocations: 119.8 kB / 353.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.118, allocations: 347.2 kB / 354.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.1182, allocations: 68.23 kB / 354.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.1185, allocations: 143.5 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.1188, allocations: 155.4 kB / 354.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.1188, allocations: 28 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.092e-05/0.1189, allocations: 32 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.119, allocations: 79.8 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1192, allocations: 123.4 kB / 354.7 MB, free: 448 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.1195, allocations: 279.4 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1195, allocations: 4 kB / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1195, allocations: 0 / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1195, allocations: 0 / 355 MB, free: 164 kB / 286.1 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.001175/0.1207, allocations: 0.5728 MB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1207, allocations: 11.89 kB / 355.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.203e-05/0.1208, allocations: 36.66 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.1211, allocations: 256.4 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.1213, allocations: 130.2 kB / 356 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.1214, allocations: 27.94 kB / 356 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.1223, allocations: 367.5 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.1223, allocations: 0 / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.1223, allocations: 8 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.1224, allocations: 8 kB / 356.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1238, allocations: 0.4901 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.1255, allocations: 1.015 MB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.1267, allocations: 343 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005185/0.1272, allocations: 173.2 kB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.1273, allocations: 4.234 kB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1273, allocations: 34.78 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.674e-06/0.1273, allocations: 0 / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02812/0.1555, allocations: 5.793 MB / 364.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.1555, allocations: 63.84 kB / 364.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.1558, allocations: 198.8 kB / 364.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.1558, allocations: 37.7 kB / 364.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.1559, allocations: 148.6 kB / 364.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.1561, allocations: 173.5 kB / 364.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.1563, allocations: 90.16 kB / 364.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1564, allocations: 342.8 kB / 365.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.1578, allocations: 468.8 kB / 365.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.1592, allocations: 0.5215 MB / 366.2 MB, free: 4.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002672/0.1619, allocations: 0.8071 MB / 367 MB, free: 3.727 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1619, allocations: 0 / 367 MB, free: 3.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002771/0.1647, allocations: 0.9827 MB / 368 MB, free: 2.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.1647, allocations: 11.94 kB / 368 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1647, allocations: 0 / 368 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1647, allocations: 7.938 kB / 368 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.1657, allocations: 167.9 kB / 368.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1658, allocations: 3.938 kB / 368.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007038/0.1665, allocations: 91.88 kB / 368.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.1665, allocations: 16 kB / 368.3 MB, free: 2.445 MB / 302.1 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.noWphase,kinematicPTP.moving[1]) * 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.000226/0.1668, allocations: 161.7 kB / 368.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-05/0.1669, allocations: 31.56 kB / 368.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.167, allocations: 47.31 kB / 368.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.167, allocations: 8 kB / 368.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.167, allocations: 0 / 368.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.167, allocations: 3.984 kB / 368.5 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.1712, allocations: 1.87 MB / 370.4 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.1712, allocations: 12.06 kB / 370.4 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.173/0.3442, allocations: 145.7 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.973e-05/0.3443, allocations: 14.97 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/0.3444, allocations: 17.69 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.256e-05/0.3444, allocations: 11.64 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.336e-05/0.3445, allocations: 15 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.3479, allocations: 1.221 MB / 371.8 MB, free: 25.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.3482, allocations: 145.5 kB / 372 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.468e-05/0.3483, allocations: 21.52 kB / 372 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.3489, allocations: 73.89 kB / 372.1 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.3492, allocations: 86.45 kB / 372.2 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.052e-05/0.3492, allocations: 23.03 kB / 372.2 MB, free: 25.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.3495, allocations: 143.8 kB / 372.3 MB, free: 25.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3495, allocations: 0.75 kB / 372.3 MB, free: 25.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.3501, allocations: 97.38 kB / 372.4 MB, free: 25.56 MB / 302.1 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.0001954/0.3503, allocations: 127.5 kB / 372.5 MB, free: 25.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002862/0.3531, allocations: 0.8761 MB / 373.4 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/0.3532, allocations: 1.344 kB / 373.4 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.3543, allocations: 321.8 kB / 373.7 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007447/0.355, allocations: 67.08 kB / 373.8 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.3575, allocations: 1.058 MB / 374.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3579, allocations: 0.7842 MB / 375.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.3582, allocations: 33.56 kB / 375.7 MB, free: 23.87 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3582, allocations: 3.938 kB / 375.7 MB, free: 23.86 MB / 302.1 MB Notification: Performance of Templates: time 0.01325/0.3714, allocations: 5.544 MB / 381.2 MB, free: 22.93 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches