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.001259/0.00126, allocations: 103.7 kB / 16.5 MB, free: 6.645 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.001304/0.001304, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.322/1.322, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 47.42 kB / 299.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1054, allocations: 49.45 MB / 349.4 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00412/0.1096, allocations: 2.186 MB / 351.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.111, allocations: 0.6432 MB / 352.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002511/0.1113, allocations: 4 kB / 352.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003419/0.1117, allocations: 31.77 kB / 352.3 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.1119, allocations: 43.75 kB / 352.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.1124, allocations: 108.3 kB / 352.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.1128, allocations: 323.2 kB / 352.7 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.113, allocations: 64.22 kB / 352.8 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.1133, allocations: 135.5 kB / 352.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.1136, allocations: 143.4 kB / 353.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.59e-05/0.1137, allocations: 20 kB / 353.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.1137, allocations: 19.94 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1138, allocations: 71.8 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.114, allocations: 115.4 kB / 353.3 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1143, allocations: 267.4 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1144, allocations: 0 / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1144, allocations: 0 / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1144, allocations: 0 / 353.5 MB, free: 0.707 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001216/0.1156, allocations: 0.5806 MB / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1157, allocations: 16.02 kB / 354.1 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.1157, allocations: 32.66 kB / 354.2 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.1161, allocations: 247.4 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.1163, allocations: 134.2 kB / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.1164, allocations: 27.94 kB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007959/0.1172, allocations: 367.5 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.1172, allocations: 4 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.1172, allocations: 8 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.1173, allocations: 4 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.1186, allocations: 497.9 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1204, allocations: 1.023 MB / 356.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.1215, allocations: 335.1 kB / 356.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004497/0.1219, allocations: 181.2 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.776e-05/0.122, allocations: 4.234 kB / 357 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.122, allocations: 42.73 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.385e-06/0.122, allocations: 0 / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02501/0.147, allocations: 5.791 MB / 362.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.1471, allocations: 55.84 kB / 362.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.1474, allocations: 202.8 kB / 363 MB, free: 6.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.025e-05/0.1475, allocations: 33.7 kB / 363.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/0.1476, allocations: 152.6 kB / 363.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.1477, allocations: 177.5 kB / 363.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.148, allocations: 90.16 kB / 363.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1481, allocations: 334.8 kB / 363.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.1492, allocations: 468.8 kB / 364.3 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.1504, allocations: 0.5138 MB / 364.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.1525, allocations: 0.8032 MB / 365.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1526, allocations: 3.938 kB / 365.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002524/0.1551, allocations: 0.9944 MB / 366.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.1551, allocations: 7.938 kB / 366.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1551, allocations: 0 / 366.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.1552, allocations: 7.984 kB / 366.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.1561, allocations: 167.7 kB / 366.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.1561, allocations: 4 kB / 366.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/0.1568, allocations: 87.92 kB / 366.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.654e-05/0.1568, allocations: 16 kB / 366.9 MB, free: 2.992 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.000236/0.1571, allocations: 157.7 kB / 367 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.1572, allocations: 31.56 kB / 367.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.1573, allocations: 55.3 kB / 367.1 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1573, allocations: 8 kB / 367.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.1573, allocations: 0 / 367.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1573, allocations: 7.984 kB / 367.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003888/0.1612, allocations: 1.866 MB / 369 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.1612, allocations: 8 kB / 369 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/0.1619, allocations: 148.5 kB / 369.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/0.1619, allocations: 15.94 kB / 369.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.162, allocations: 20 kB / 369.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.607e-05/0.162, allocations: 15.94 kB / 369.2 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.592e-05/0.162, allocations: 11.94 kB / 369.2 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1792/0.3412, allocations: 1.217 MB / 370.4 MB, free: 26.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.3415, allocations: 149.4 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.884e-05/0.3415, allocations: 20.19 kB / 370.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005166/0.3421, allocations: 71.73 kB / 370.7 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.3423, allocations: 84.19 kB / 370.7 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/0.3423, allocations: 24.31 kB / 370.8 MB, free: 26.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001695/0.3425, allocations: 145.5 kB / 370.9 MB, free: 26.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3425, allocations: 0 / 370.9 MB, free: 26.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000491/0.343, allocations: 98.12 kB / 371 MB, free: 26.07 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.0001299/0.3431, allocations: 126.4 kB / 371.1 MB, free: 25.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002062/0.3452, allocations: 0.8496 MB / 372 MB, free: 25.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3452, allocations: 1.031 kB / 372 MB, free: 25.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008385/0.3461, allocations: 329.1 kB / 372.3 MB, free: 25.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.3467, allocations: 59.19 kB / 372.4 MB, free: 25.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.3485, allocations: 1.155 MB / 373.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.3487, allocations: 0.7808 MB / 374.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000454/0.3492, allocations: 76.55 kB / 374.4 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.3494, allocations: 33.38 kB / 374.4 MB, free: 24.36 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3494, allocations: 1.375 kB / 374.4 MB, free: 24.36 MB / 302.1 MB Notification: Performance of Templates: time 0.009458/0.3589, allocations: 5.235 MB / 379.6 MB, free: 23.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/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