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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009529/0.0009528, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009232, allocations: 87.61 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.782e-05/1.792e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.41 MB / 387.5 MB, free: 7.605 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/0.4311, allocations: 78.69 MB / 466.1 MB, free: 204 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4313, allocations: 67.97 kB / 466.2 MB, free: 136 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01579/0.4471, allocations: 5.584 MB / 471.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4472, allocations: 0 / 471.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.4472, allocations: 4.938 kB / 471.8 MB, free: 10.55 MB / 346.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.0008824/0.4481, allocations: 0.5452 MB / 472.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4481, allocations: 12.03 kB / 472.4 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/0.4482, allocations: 27.72 kB / 472.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.4485, allocations: 243.2 kB / 472.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.4487, allocations: 125.6 kB / 472.7 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.4487, allocations: 16 kB / 472.8 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005667/0.4493, allocations: 376.9 kB / 473.1 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.4497, allocations: 282.5 kB / 473.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.4498, allocations: 0 / 473.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.4498, allocations: 3.953 kB / 473.4 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.4498, allocations: 8 kB / 473.4 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.4513, allocations: 0.9867 MB / 474.4 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.4519, allocations: 242.5 kB / 474.6 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.4521, allocations: 125.3 kB / 474.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.4521, allocations: 4.5 kB / 474.8 MB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.4521, allocations: 38.55 kB / 474.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.333e-06/0.4521, allocations: 0 / 474.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.006809/0.459, allocations: 2.965 MB / 477.8 MB, free: 4.285 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.459, allocations: 67.8 kB / 477.8 MB, free: 4.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.4592, allocations: 181.3 kB / 478 MB, free: 4.023 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.4593, allocations: 25.7 kB / 478 MB, free: 3.992 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.46e-05/0.4594, allocations: 144.7 kB / 478.2 MB, free: 3.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.4595, allocations: 169.5 kB / 478.3 MB, free: 3.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.4595, allocations: 0 / 478.3 MB, free: 3.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4596, allocations: 338.8 kB / 478.7 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.4601, allocations: 317.1 kB / 479 MB, free: 3.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000441/0.4605, allocations: 377.2 kB / 479.4 MB, free: 2.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.4609, allocations: 246.1 kB / 479.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4609, allocations: 7.938 kB / 479.6 MB, free: 2.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009675/0.4619, allocations: 0.6783 MB / 480.3 MB, free: 1.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4619, allocations: 4 kB / 480.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.4619, allocations: 0 / 480.3 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4619, allocations: 4 kB / 480.3 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009771/0.4629, allocations: 187.9 kB / 480.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.4629, allocations: 7.984 kB / 480.5 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00069/0.4636, allocations: 103.8 kB / 480.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.4637, allocations: 16 kB / 480.6 MB, free: 1.398 MB / 346.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.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.4639, allocations: 112.8 kB / 480.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/0.464, allocations: 27.72 kB / 480.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.4641, allocations: 51.39 kB / 480.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4641, allocations: 4 kB / 480.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4641, allocations: 0 / 480.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4641, allocations: 0 / 480.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.467, allocations: 1.623 MB / 482.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.467, allocations: 8.156 kB / 482.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006557/0.4677, allocations: 171.7 kB / 482.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.4677, allocations: 16 kB / 482.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.4678, allocations: 12 kB / 482.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.053e-05/0.4678, allocations: 15.94 kB / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/0.4678, allocations: 11.94 kB / 482.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.4692, allocations: 1.289 MB / 483.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.4693, allocations: 148.8 kB / 484.1 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.919e-05/0.4694, allocations: 8 kB / 484.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/0.4699, allocations: 87.91 kB / 484.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.4701, allocations: 91.72 kB / 484.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.4702, allocations: 24 kB / 484.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.4703, allocations: 152.2 kB / 484.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4703, allocations: 0 / 484.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004697/0.4708, allocations: 80 kB / 484.5 MB, free: 12.96 MB / 362.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 () * 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 (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.0001719/0.471, allocations: 115.1 kB / 484.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008329/0.4718, allocations: 0.5868 MB / 485.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4718, allocations: 4 kB / 485.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.4722, allocations: 204.2 kB / 485.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.4725, allocations: 35.98 kB / 485.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.4741, allocations: 0.8199 MB / 486.3 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.4744, allocations: 0.7884 MB / 487.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004592/0.4749, allocations: 79.25 kB / 487.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.4751, allocations: 31.44 kB / 487.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4751, allocations: 0 / 487.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of Templates: time 0.007802/0.4829, allocations: 4.981 MB / 492.1 MB, free: 5.188 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches