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.001013/0.001013, allocations: 95.58 kB / 16.3 MB, free: 5.566 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.0009171/0.0009173, allocations: 180.1 kB / 17.2 MB, free: 5.5 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.316/1.316, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002757, allocations: 9.344 kB / 300.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1081, allocations: 50.41 MB / 351.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002268/0.1105, allocations: 1.754 MB / 352.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.1115, allocations: 0.6164 MB / 353.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.1116, allocations: 4 kB / 353.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.1118, allocations: 39.7 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.112, allocations: 43.89 kB / 353.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.1123, allocations: 103.8 kB / 353.7 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.1125, allocations: 203.6 kB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.1127, allocations: 56.22 kB / 353.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.1129, allocations: 115.6 kB / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.1131, allocations: 135.5 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.1131, allocations: 16 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.933e-05/0.1132, allocations: 12 kB / 354.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.488e-05/0.1133, allocations: 71.72 kB / 354.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.455e-05/0.1133, allocations: 65.58 kB / 354.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.1135, allocations: 191.8 kB / 354.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1135, allocations: 3.938 kB / 354.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1135, allocations: 4 kB / 354.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1136, allocations: 0 / 354.5 MB, free: 0.6094 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.001015/0.1146, allocations: 0.5532 MB / 355.1 MB, free: 8 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.1146, allocations: 12.08 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.1147, allocations: 31.67 kB / 355.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.115, allocations: 250.3 kB / 355.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.1152, allocations: 141.6 kB / 355.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.1153, allocations: 24 kB / 355.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007925/0.1161, allocations: 371.6 kB / 355.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.1161, allocations: 7.906 kB / 355.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.1162, allocations: 8 kB / 355.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.1162, allocations: 7.953 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.1175, allocations: 0.5213 MB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.1192, allocations: 1.027 MB / 357.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.1204, allocations: 351.1 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.1204, allocations: 4.234 kB / 357.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.1204, allocations: 34.8 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.1204, allocations: 4 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.0274/0.1478, allocations: 6.673 MB / 364.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.1479, allocations: 55.84 kB / 364.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.1482, allocations: 202.9 kB / 364.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.828e-05/0.1483, allocations: 33.7 kB / 364.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1484, allocations: 148.6 kB / 365 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.1485, allocations: 177.4 kB / 365.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.1486, allocations: 8 kB / 365.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1487, allocations: 338.8 kB / 365.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.1501, allocations: 0.493 MB / 366 MB, free: 4.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.1515, allocations: 0.5528 MB / 366.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.1527, allocations: 438 kB / 366.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1527, allocations: 0 / 366.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002846/0.1556, allocations: 1.061 MB / 368 MB, free: 2.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1556, allocations: 4 kB / 368 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1556, allocations: 0 / 368 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.1557, allocations: 7.953 kB / 368 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009599/0.1566, allocations: 187.8 kB / 368.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.1566, allocations: 7.938 kB / 368.2 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006962/0.1574, allocations: 103.9 kB / 368.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.1574, allocations: 19.94 kB / 368.3 MB, free: 2.457 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.moving[1],kinematicPTP.noWphase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.1577, allocations: 157.8 kB / 368.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/0.1577, allocations: 35.62 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.1579, allocations: 51.3 kB / 368.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1579, allocations: 7.938 kB / 368.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.1579, allocations: 3.953 kB / 368.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1579, allocations: 0 / 368.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004156/0.1621, allocations: 1.987 MB / 370.6 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.1621, allocations: 8 kB / 370.6 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1824/0.3445, allocations: 161.9 kB / 370.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.43e-05/0.3446, allocations: 12.22 kB / 370.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.947e-05/0.3447, allocations: 19.61 kB / 370.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.985e-05/0.3447, allocations: 15.72 kB / 370.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.409e-05/0.3447, allocations: 16.28 kB / 370.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003299/0.348, allocations: 1.739 MB / 372.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.3483, allocations: 142.7 kB / 372.7 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.261e-05/0.3484, allocations: 21.41 kB / 372.7 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005739/0.3489, allocations: 94.17 kB / 372.8 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/0.3492, allocations: 90.84 kB / 372.9 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.3492, allocations: 26.45 kB / 372.9 MB, free: 24.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.3494, allocations: 144.2 kB / 373 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3494, allocations: 0 / 373 MB, free: 24.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005044/0.3499, allocations: 96.53 kB / 373.1 MB, free: 24.29 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 (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.0001725/0.3501, allocations: 130.2 kB / 373.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002619/0.3527, allocations: 0.9222 MB / 374.2 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3527, allocations: 1.781 kB / 374.2 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.3538, allocations: 365.5 kB / 374.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.3543, allocations: 50.19 kB / 374.6 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.3565, allocations: 1.162 MB / 375.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.3568, allocations: 0.7908 MB / 376.5 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000477/0.3573, allocations: 79.31 kB / 376.6 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.3575, allocations: 35.64 kB / 376.7 MB, free: 22.63 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3575, allocations: 0 / 376.7 MB, free: 22.63 MB / 302.1 MB Notification: Performance of Templates: time 0.01102/0.3685, allocations: 4.999 MB / 381.7 MB, free: 21.91 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches