Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.007/1.007, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.077e-05/3.286e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002641/0.002674, allocations: 2.369 MB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.003732, allocations: 0.8259 MB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.003835, allocations: 7.938 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.004068, allocations: 55.52 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.004205, allocations: 55.55 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.004517, allocations: 187.4 kB / 276.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002628/0.00478, allocations: 387.5 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.004905, allocations: 76.27 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.005154, allocations: 231.5 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.005301, allocations: 143.6 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.739e-05/0.005338, allocations: 36 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.195e-05/0.00537, allocations: 32 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.026e-05/0.00544, allocations: 103.7 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.576e-05/0.005516, allocations: 107.7 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.005746, allocations: 255.1 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.005748, allocations: 4 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.005749, allocations: 0 / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.005753, allocations: 0 / 277.8 MB, free: 12.66 MB / 266.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.0006856/0.006439, allocations: 0.6443 MB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.00647, allocations: 8.031 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.684e-05/0.006547, allocations: 72.7 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.006779, allocations: 223.2 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.006954, allocations: 339.9 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.006994, allocations: 32.36 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005647/0.007559, allocations: 468.6 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.007572, allocations: 4.188 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.007596, allocations: 16.12 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.007605, allocations: 4 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003551/0.00796, allocations: 243.7 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.008777, allocations: 0.9408 MB / 280.8 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.00932, allocations: 340.6 kB / 281.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.009493, allocations: 146.8 kB / 281.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.009526, allocations: 8.406 kB / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.009551, allocations: 49.27 kB / 281.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.724e-06/0.009553, allocations: 3.938 kB / 281.3 MB, free: 8.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00659/0.01614, allocations: 2.632 MB / 283.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/0.01622, allocations: 149 kB / 284.1 MB, free: 6.051 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.01638, allocations: 250.5 kB / 284.3 MB, free: 5.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.01643, allocations: 37.7 kB / 284.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.01651, allocations: 180.6 kB / 284.5 MB, free: 5.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.01663, allocations: 202.3 kB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.01681, allocations: 92 kB / 284.8 MB, free: 5.262 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.01694, allocations: 0.5195 MB / 285.3 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.01734, allocations: 317.2 kB / 285.6 MB, free: 4.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.01778, allocations: 436.1 kB / 286.1 MB, free: 3.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007445/0.01853, allocations: 0.6357 MB / 286.7 MB, free: 3.281 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.01853, allocations: 4 kB / 286.7 MB, free: 3.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001009/0.01954, allocations: 0.7824 MB / 287.5 MB, free: 2.488 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.01956, allocations: 10.5 kB / 287.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01957, allocations: 0 / 287.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.01959, allocations: 8 kB / 287.5 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.02017, allocations: 163.7 kB / 287.7 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.02018, allocations: 4 kB / 287.7 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.02053, allocations: 84 kB / 287.8 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.02057, allocations: 16 kB / 287.8 MB, free: 2.211 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001808/0.02075, allocations: 188.5 kB / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.02097, allocations: 157.7 kB / 288.1 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.634e-05/0.02105, allocations: 63.3 kB / 288.2 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.02106, allocations: 8 kB / 288.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.02107, allocations: 0 / 288.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.02107, allocations: 7.984 kB / 288.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.02292, allocations: 1.519 MB / 289.7 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.02293, allocations: 12 kB / 289.7 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003572/0.02328, allocations: 168.4 kB / 289.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.02329, allocations: 12 kB / 289.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.02333, allocations: 32 kB / 289.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.291e-05/0.02334, allocations: 27.86 kB / 290 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.02335, allocations: 11.94 kB / 290 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.02438, allocations: 1.217 MB / 291.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.0245, allocations: 99.64 kB / 291.3 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.02454, allocations: 28 kB / 291.3 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.02479, allocations: 59.94 kB / 291.4 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.02492, allocations: 83.64 kB / 291.4 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.02495, allocations: 39.94 kB / 291.5 MB, free: 14.06 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.968e-05/0.02503, allocations: 165.1 kB / 291.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02503, allocations: 3.938 kB / 291.7 MB, free: 13.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.0254, allocations: 116 kB / 291.8 MB, free: 13.78 MB / 282.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001283/0.02552, allocations: 135.1 kB / 291.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000781/0.02631, allocations: 0.5819 MB / 292.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.02631, allocations: 0 / 292.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.02654, allocations: 171.1 kB / 292.6 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.02718, allocations: 141.6 kB / 292.8 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001514/0.02869, allocations: 1.135 MB / 293.9 MB, free: 11.4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.45e-05/0.02879, allocations: 130.8 kB / 294 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002444/0.02903, allocations: 87.19 kB / 294.1 MB, free: 11.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.02923, allocations: 40.48 kB / 294.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02923, allocations: 0 / 294.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of Templates: time 0.009384/0.03861, allocations: 8.802 MB / 303 MB, free: 2.387 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.392383416183293]