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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009246/0.0009246, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009243/0.0009243, allocations: 153.7 kB / 24.81 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.066/1.066, allocations: 173.3 MB / 201.4 MB, free: 9.246 MB / 186.7 MB " [Timeout remaining time 179] 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=5008,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=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 268.4 MB, free: 6.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.865e-05/2.026e-05, allocations: 2.312 kB / 268.4 MB, free: 6.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003564/0.003584, allocations: 2.14 MB / 270.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.004813, allocations: 0.6392 MB / 271.2 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.004959, allocations: 7.938 kB / 271.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.00526, allocations: 43.7 kB / 271.2 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.005418, allocations: 55.55 kB / 271.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.005808, allocations: 127.7 kB / 271.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004488/0.006257, allocations: 347.1 kB / 271.7 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.006442, allocations: 48.55 kB / 271.8 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.006771, allocations: 199.6 kB / 272 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.006979, allocations: 131.6 kB / 272.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.007032, allocations: 28 kB / 272.1 MB, free: 2.473 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.878e-05/0.00708, allocations: 32 kB / 272.2 MB, free: 2.441 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.648e-05/0.007177, allocations: 87.77 kB / 272.2 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.00728, allocations: 91.73 kB / 272.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002935/0.007574, allocations: 223.2 kB / 272.5 MB, free: 2.047 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.007576, allocations: 0 / 272.5 MB, free: 2.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.007577, allocations: 4 kB / 272.6 MB, free: 2.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.007583, allocations: 3.938 kB / 272.6 MB, free: 2.039 MB / 250.7 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.0009139/0.008497, allocations: 0.601 MB / 273.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.008542, allocations: 12.02 kB / 273.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.44e-05/0.008636, allocations: 56.8 kB / 273.2 MB, free: 1.336 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.008898, allocations: 183.8 kB / 273.4 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.009181, allocations: 339.8 kB / 273.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.136e-05/0.009232, allocations: 24.38 kB / 273.8 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.009674, allocations: 269.2 kB / 274 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.009689, allocations: 0 / 274 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.009716, allocations: 12 kB / 274 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.009725, allocations: 4 kB / 274 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.01012, allocations: 177.3 kB / 274.2 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.01153, allocations: 0.8514 MB / 275.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.01192, allocations: 155 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.01217, allocations: 71.7 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.0122, allocations: 4 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.01223, allocations: 45.38 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.136e-06/0.01223, allocations: 0 / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.005372/0.0176, allocations: 2.681 MB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.01764, allocations: 59.91 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.01778, allocations: 241.7 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.01783, allocations: 37.7 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.499e-05/0.01791, allocations: 199.6 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.01802, allocations: 190.3 kB / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.01816, allocations: 95.97 kB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.01829, allocations: 0.5155 MB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.01849, allocations: 161.2 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.01872, allocations: 245.3 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/0.01909, allocations: 340.3 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01909, allocations: 4 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005696/0.01966, allocations: 481.2 kB / 280.5 MB, free: 9.676 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.01968, allocations: 10.81 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.01968, allocations: 128 / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.0197, allocations: 8 kB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.02017, allocations: 159.7 kB / 280.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.02017, allocations: 0 / 280.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.02044, allocations: 67.92 kB / 280.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.02047, allocations: 15.98 kB / 280.8 MB, free: 9.422 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001439/0.02061, allocations: 184.4 kB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.611e-05/0.02069, allocations: 47.81 kB / 281 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.02074, allocations: 55.25 kB / 281.1 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.02075, allocations: 7.938 kB / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.02075, allocations: 0 / 281.1 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.02076, allocations: 7.984 kB / 281.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/0.02225, allocations: 1.264 MB / 282.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.02225, allocations: 8 kB / 282.4 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.02255, allocations: 127.8 kB / 282.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.02256, allocations: 12.66 kB / 282.5 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.02258, allocations: 20 kB / 282.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.127e-06/0.02259, allocations: 19.94 kB / 282.5 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.0226, allocations: 11.94 kB / 282.6 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007128/0.02331, allocations: 0.8328 MB / 283.4 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.02343, allocations: 67.75 kB / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.02346, allocations: 24 kB / 283.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.0237, allocations: 55.94 kB / 283.5 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.02382, allocations: 83.64 kB / 283.6 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.02385, allocations: 20 kB / 283.6 MB, free: 6.223 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.914e-05/0.02392, allocations: 160.2 kB / 283.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02392, allocations: 0 / 283.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003192/0.02424, allocations: 104 kB / 283.9 MB, free: 5.965 MB / 266.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001211/0.02436, allocations: 127.1 kB / 284 MB, free: 5.832 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004525/0.02482, allocations: 370.9 kB / 284.4 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.02482, allocations: 4 kB / 284.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.02499, allocations: 145.8 kB / 284.5 MB, free: 5.316 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.0254, allocations: 91.88 kB / 284.6 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.02671, allocations: 0.9506 MB / 285.6 MB, free: 4.098 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.02681, allocations: 109.6 kB / 285.7 MB, free: 3.973 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002237/0.02703, allocations: 70.89 kB / 285.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002364/0.02727, allocations: 122.2 kB / 285.9 MB, free: 3.785 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02727, allocations: 0 / 285.9 MB, free: 3.785 MB / 266.7 MB Notification: Performance of Templates: time 0.008002/0.03527, allocations: 6.627 MB / 292.5 MB, free: 13.23 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.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: 2.890213859733194]