Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00166/0.001659, allocations: 113.2 kB / 17.69 MB, free: 5.309 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.001815/0.001815, allocations: 191 kB / 18.63 MB, free: 4.375 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.466/1.466, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 48.39 kB / 302.1 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1218, allocations: 49.44 MB / 351.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00424/0.1261, allocations: 2.342 MB / 353.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1277, allocations: 0.8026 MB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.128, allocations: 4 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.1283, allocations: 55.58 kB / 354.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.1286, allocations: 55.5 kB / 354.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005932/0.1292, allocations: 179.6 kB / 354.9 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.1297, allocations: 379.5 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.13, allocations: 99.81 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.1303, allocations: 163.4 kB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.1305, allocations: 179.3 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.414e-05/0.1306, allocations: 32 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.1307, allocations: 36 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.1308, allocations: 95.73 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.1309, allocations: 151.2 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.1313, allocations: 338.8 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.1313, allocations: 0 / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1313, allocations: 3.938 kB / 356.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1314, allocations: 0 / 356.4 MB, free: 14.85 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001269/0.1326, allocations: 0.62 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.1327, allocations: 11.89 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.71e-05/0.1328, allocations: 40.56 kB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/0.1333, allocations: 268.4 kB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.1335, allocations: 146.3 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.1336, allocations: 28.28 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.1348, allocations: 0.5739 MB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.1348, allocations: 4 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.1348, allocations: 12 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.1349, allocations: 11.98 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.1361, allocations: 0.504 MB / 358.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/0.1377, allocations: 1.006 MB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.1392, allocations: 0.4985 MB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005701/0.1398, allocations: 259.4 kB / 360.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.1398, allocations: 20.12 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.1399, allocations: 38.5 kB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.194e-06/0.1399, allocations: 4 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03631/0.1762, allocations: 5.708 MB / 366.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1764, allocations: 148.9 kB / 366.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.1766, allocations: 204.2 kB / 366.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.153e-05/0.1767, allocations: 33.7 kB / 366.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.169e-05/0.1768, allocations: 145.5 kB / 366.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.177, allocations: 193.7 kB / 366.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003158/0.1774, allocations: 106.7 kB / 366.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1775, allocations: 338.8 kB / 367.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.179, allocations: 0.6188 MB / 367.9 MB, free: 3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.1805, allocations: 0.8079 MB / 368.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/0.1834, allocations: 1.247 MB / 369.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.1834, allocations: 0 / 369.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1812/0.3646, allocations: 1.396 MB / 371.3 MB, free: 26.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.3647, allocations: 7.719 kB / 371.3 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.3647, allocations: 5.734 kB / 371.3 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.3648, allocations: 11.67 kB / 371.3 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.3661, allocations: 207.9 kB / 371.5 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.3662, allocations: 14.53 kB / 371.6 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008773/0.367, allocations: 99.86 kB / 371.7 MB, free: 26.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.101e-05/0.3671, allocations: 25.72 kB / 371.7 MB, free: 26.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003017/0.3674, allocations: 187.8 kB / 371.9 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003162/0.3678, allocations: 153.7 kB / 372 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.3679, allocations: 62.81 kB / 372.1 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.368, allocations: 8.125 kB / 372.1 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.368, allocations: 2.906 kB / 372.1 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.368, allocations: 4.578 kB / 372.1 MB, free: 25.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004528/0.3725, allocations: 2.175 MB / 374.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.3726, allocations: 14.25 kB / 374.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006991/0.3733, allocations: 182.6 kB / 374.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.758e-05/0.3733, allocations: 14.34 kB / 374.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.025e-05/0.3734, allocations: 24.11 kB / 374.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.535e-05/0.3734, allocations: 20.3 kB / 374.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/0.3734, allocations: 22.38 kB / 374.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002639/0.376, allocations: 1.554 MB / 376.1 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.3762, allocations: 164.4 kB / 376.3 MB, free: 24.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.3763, allocations: 28.88 kB / 376.3 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005478/0.3769, allocations: 78.39 kB / 376.4 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.3771, allocations: 97.33 kB / 376.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.3771, allocations: 29.19 kB / 376.5 MB, free: 23.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000112/0.3773, allocations: 146.5 kB / 376.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3773, allocations: 0 / 376.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006689/0.3779, allocations: 122.5 kB / 376.7 MB, free: 23.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001422/0.3781, allocations: 137.3 kB / 376.9 MB, free: 23.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002539/0.3806, allocations: 1.135 MB / 378 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.3806, allocations: 1.281 kB / 378 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00093/0.3816, allocations: 343.5 kB / 378.4 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008559/0.3824, allocations: 136 kB / 378.5 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.3846, allocations: 1.175 MB / 379.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3849, allocations: 0.8091 MB / 380.5 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004731/0.3854, allocations: 94.28 kB / 380.6 MB, free: 21.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002794/0.3857, allocations: 46 kB / 380.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3857, allocations: 1.25 kB / 380.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01549/0.4012, allocations: 8.205 MB / 388.8 MB, free: 18.49 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches