Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.14 kB / 306.9 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, allocations: 50.53 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004048/0.111, allocations: 2.141 MB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1126, allocations: 0.69 MB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.1128, allocations: 4 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.1132, allocations: 43.64 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.1135, allocations: 51.62 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.1139, allocations: 135.8 kB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005787/0.1145, allocations: 331.2 kB / 360.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1147, allocations: 76.28 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.1151, allocations: 147.5 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.1154, allocations: 151.5 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.1155, allocations: 31.94 kB / 361.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.1155, allocations: 32 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1156, allocations: 83.78 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1158, allocations: 123.4 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.1161, allocations: 279.4 kB / 361.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1161, allocations: 0 / 361.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.1161, allocations: 4 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1162, allocations: 3.938 kB / 361.8 MB, free: 9.746 MB / 302.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.00119/0.1174, allocations: 0.5767 MB / 362.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1174, allocations: 8.031 kB / 362.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.968e-05/0.1175, allocations: 32.66 kB / 362.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1178, allocations: 251.4 kB / 362.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.118, allocations: 130.2 kB / 362.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.1181, allocations: 31.94 kB / 362.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.1189, allocations: 375.5 kB / 363.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1189, allocations: 4 kB / 363.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.119, allocations: 8 kB / 363.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.119, allocations: 8 kB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1204, allocations: 497.9 kB / 363.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.1222, allocations: 1.003 MB / 364.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1234, allocations: 351.9 kB / 365 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004752/0.1239, allocations: 169.2 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.1239, allocations: 4.234 kB / 365.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.1239, allocations: 38.73 kB / 365.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.733e-06/0.1239, allocations: 0 / 365.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02683/0.1508, allocations: 5.793 MB / 371 MB, free: 212 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.1508, allocations: 59.84 kB / 371.1 MB, free: 140 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1676/0.3184, allocations: 197.3 kB / 371.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.3186, allocations: 33.8 kB / 371.3 MB, free: 21.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.3187, allocations: 150 kB / 371.4 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.319, allocations: 173.4 kB / 371.6 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.3193, allocations: 89.75 kB / 371.7 MB, free: 21.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3194, allocations: 339.1 kB / 372 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.3209, allocations: 470.1 kB / 372.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.3223, allocations: 0.5152 MB / 373 MB, free: 20.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.3248, allocations: 0.8086 MB / 373.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3248, allocations: 0 / 373.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002889/0.3277, allocations: 0.9834 MB / 374.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3277, allocations: 6.062 kB / 374.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3277, allocations: 1.406 kB / 374.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.3278, allocations: 6.562 kB / 374.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.3288, allocations: 173.8 kB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.3288, allocations: 4.688 kB / 375 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007339/0.3296, allocations: 84.09 kB / 375.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.3296, allocations: 16.38 kB / 375.1 MB, free: 20.01 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.0002054/0.3298, allocations: 164.8 kB / 375.2 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3299, allocations: 25.47 kB / 375.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.33, allocations: 52.39 kB / 375.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3301, allocations: 5.5 kB / 375.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3301, allocations: 1.375 kB / 375.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3301, allocations: 2.719 kB / 375.3 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.3341, allocations: 1.88 MB / 377.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.3341, allocations: 9.438 kB / 377.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.3348, allocations: 143.8 kB / 377.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/0.3348, allocations: 10.84 kB / 377.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/0.3349, allocations: 21.45 kB / 377.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-05/0.3349, allocations: 21.23 kB / 377.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.227e-05/0.3349, allocations: 14.78 kB / 377.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002802/0.3377, allocations: 1.227 MB / 378.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.3379, allocations: 148.3 kB / 378.8 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.338, allocations: 26.84 kB / 378.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/0.3385, allocations: 66.86 kB / 378.9 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.3387, allocations: 88.41 kB / 379 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.3388, allocations: 24.22 kB / 379 MB, free: 17.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001485/0.3389, allocations: 146.8 kB / 379.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.339, allocations: 0 / 379.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.3394, allocations: 93.16 kB / 379.2 MB, free: 17.76 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.0001334/0.3396, allocations: 131.6 kB / 379.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.3419, allocations: 0.873 MB / 380.2 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.342, allocations: 2.781 kB / 380.2 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009601/0.3429, allocations: 334.5 kB / 380.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.3436, allocations: 59.2 kB / 380.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.3456, allocations: 1.016 MB / 381.6 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3459, allocations: 0.7806 MB / 382.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005012/0.3464, allocations: 81.67 kB / 382.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.3466, allocations: 31.09 kB / 382.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3466, allocations: 0 / 382.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01041/0.3571, allocations: 5.691 MB / 388.2 MB, free: 13.88 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches