Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001787/0.001787, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002338/0.002338, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.476/2.476, allocations: 227.4 MB / 247.1 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 59.62 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1515, allocations: 50.54 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004995/0.1565, allocations: 2.39 MB / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1586, allocations: 0.834 MB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.1589, allocations: 7.938 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003712/0.1593, allocations: 39.77 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.1596, allocations: 47.69 kB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.1602, allocations: 159.8 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005294/0.1608, allocations: 383.5 kB / 361.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003097/0.1611, allocations: 103.8 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003969/0.1615, allocations: 171.5 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003299/0.1619, allocations: 175.2 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.367e-05/0.1619, allocations: 36 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.162, allocations: 32 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1622, allocations: 99.77 kB / 362.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.1624, allocations: 151.2 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.1628, allocations: 235.8 kB / 362.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1628, allocations: 0 / 362.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1628, allocations: 0 / 362.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1628, allocations: 0 / 362.5 MB, free: 9.578 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.001632/0.1645, allocations: 0.6278 MB / 363.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1646, allocations: 12.03 kB / 363.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1647, allocations: 44.5 kB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.1651, allocations: 265.4 kB / 363.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/0.1654, allocations: 142.3 kB / 363.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.861e-05/0.1655, allocations: 32.31 kB / 363.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.1673, allocations: 0.5628 MB / 364.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.1673, allocations: 4 kB / 364.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.046e-05/0.1674, allocations: 19.94 kB / 364.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.1674, allocations: 8 kB / 364.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.1695, allocations: 0.5074 MB / 364.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.1717, allocations: 1.002 MB / 365.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.1741, allocations: 0.4993 MB / 366.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008971/0.175, allocations: 263.4 kB / 366.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.236e-05/0.1751, allocations: 4.156 kB / 366.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.1751, allocations: 46.5 kB / 366.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.407e-06/0.1751, allocations: 0 / 366.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.3055/0.4807, allocations: 5.723 MB / 372.2 MB, free: 21.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.4808, allocations: 151.8 kB / 372.4 MB, free: 21.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.4812, allocations: 196.8 kB / 372.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001358/0.4814, allocations: 40.91 kB / 372.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.4815, allocations: 144.4 kB / 372.7 MB, free: 20.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.4818, allocations: 192.6 kB / 372.9 MB, free: 20.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004432/0.4822, allocations: 105.9 kB / 373 MB, free: 20.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.4823, allocations: 347.5 kB / 373.4 MB, free: 20.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.4847, allocations: 0.6177 MB / 374 MB, free: 20.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/0.4873, allocations: 0.7958 MB / 374.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004535/0.4918, allocations: 1.247 MB / 376 MB, free: 19.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.4919, allocations: 1.375 kB / 376 MB, free: 19.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005313/0.4972, allocations: 1.4 MB / 377.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/0.4973, allocations: 6.406 kB / 377.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.4973, allocations: 9.641 kB / 377.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.622e-05/0.4974, allocations: 12.56 kB / 377.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/0.4995, allocations: 208.6 kB / 377.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-05/0.4995, allocations: 15.42 kB / 377.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.5011, allocations: 101.7 kB / 377.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.5012, allocations: 32.62 kB / 377.8 MB, free: 18.48 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.0004685/0.5017, allocations: 185.8 kB / 378 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004847/0.5022, allocations: 157.2 kB / 378.1 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001982/0.5024, allocations: 64.67 kB / 378.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.5024, allocations: 7.391 kB / 378.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.153e-05/0.5025, allocations: 2.062 kB / 378.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.5025, allocations: 4.797 kB / 378.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00704/0.5095, allocations: 2.171 MB / 380.4 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.395e-05/0.5096, allocations: 9.781 kB / 380.4 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.5109, allocations: 187 kB / 380.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-05/0.5109, allocations: 16.97 kB / 380.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-05/0.511, allocations: 25.89 kB / 380.6 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.207e-05/0.511, allocations: 19.75 kB / 380.6 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/0.511, allocations: 15.47 kB / 380.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004554/0.5156, allocations: 1.551 MB / 382.2 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.516, allocations: 163.8 kB / 382.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.5162, allocations: 27.28 kB / 382.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.5171, allocations: 77.3 kB / 382.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/0.5174, allocations: 97.31 kB / 382.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.837e-05/0.5175, allocations: 30.42 kB / 382.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.5177, allocations: 141.3 kB / 382.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5177, allocations: 1.219 kB / 382.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001101/0.5188, allocations: 122.3 kB / 382.9 MB, free: 15.74 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.0002077/0.519, allocations: 140.1 kB / 383 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004366/0.5234, allocations: 1.153 MB / 384.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/0.5235, allocations: 1.188 kB / 384.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.5251, allocations: 341.8 kB / 384.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.5267, allocations: 144.7 kB / 384.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.5302, allocations: 1.336 MB / 386 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.5306, allocations: 0.8139 MB / 386.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005349/0.5312, allocations: 46.17 kB / 386.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5312, allocations: 0 / 386.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01931/0.5505, allocations: 7.148 MB / 394 MB, free: 10.17 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches