Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001332, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.45/1.45, allocations: 227.7 MB / 246.6 MB, free: 10.6 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 68.56 kB / 306.6 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1421, allocations: 50.53 MB / 357.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005243/0.1474, allocations: 2.202 MB / 359.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.1493, allocations: 0.6899 MB / 360 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.1495, allocations: 4 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003691/0.1499, allocations: 35.77 kB / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.1501, allocations: 35.77 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.1505, allocations: 107.1 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.151, allocations: 335.2 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.1512, allocations: 56.36 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003771/0.1516, allocations: 131.5 kB / 360.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.1519, allocations: 155.3 kB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.1519, allocations: 20 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.868e-05/0.152, allocations: 20 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1521, allocations: 71.78 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1523, allocations: 115.4 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.1526, allocations: 263.4 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1526, allocations: 0 / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1526, allocations: 4 kB / 361.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1527, allocations: 0 / 361.3 MB, free: 10.14 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.001323/0.154, allocations: 0.5767 MB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.154, allocations: 8.031 kB / 361.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.6e-05/0.1541, allocations: 32.66 kB / 361.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.1545, allocations: 258.6 kB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002498/0.1548, allocations: 134.2 kB / 362.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/0.1549, allocations: 27.94 kB / 362.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009152/0.1558, allocations: 359.6 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.1559, allocations: 4 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.1559, allocations: 12 kB / 362.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1559, allocations: 8 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.1573, allocations: 497.8 kB / 363.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.1594, allocations: 1.003 MB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.1606, allocations: 347 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004837/0.1611, allocations: 177.9 kB / 364.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.1612, allocations: 240 / 364.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1612, allocations: 38.8 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.362e-06/0.1612, allocations: 0 / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02813/0.1894, allocations: 5.786 MB / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.1895, allocations: 55.84 kB / 370.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.1898, allocations: 195.7 kB / 370.8 MB, free: 356 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-05/0.1899, allocations: 33.7 kB / 370.8 MB, free: 316 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.19, allocations: 156.6 kB / 371 MB, free: 152 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2309/0.421, allocations: 166.7 kB / 371.1 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003913/0.4215, allocations: 96.31 kB / 371.2 MB, free: 21.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4216, allocations: 335.4 kB / 371.5 MB, free: 20.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.4231, allocations: 468.5 kB / 372 MB, free: 20.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.4246, allocations: 0.517 MB / 372.5 MB, free: 20.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.427, allocations: 0.8088 MB / 373.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.427, allocations: 1.062 kB / 373.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003172/0.4302, allocations: 0.9879 MB / 374.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.4303, allocations: 8.672 kB / 374.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.4303, allocations: 1.438 kB / 374.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.937e-05/0.4303, allocations: 2.656 kB / 374.3 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.4314, allocations: 173.6 kB / 374.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.4314, allocations: 6.5 kB / 374.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00072/0.4322, allocations: 88.97 kB / 374.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.4322, allocations: 16.38 kB / 374.6 MB, free: 20.26 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.0002492/0.4325, allocations: 163.2 kB / 374.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.561e-05/0.4326, allocations: 29.44 kB / 374.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.4327, allocations: 49.5 kB / 374.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4327, allocations: 6.109 kB / 374.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.4327, allocations: 3.938 kB / 374.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.4328, allocations: 3.859 kB / 374.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.4369, allocations: 1.881 MB / 376.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/0.437, allocations: 11.72 kB / 376.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007077/0.4377, allocations: 145.2 kB / 376.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.676e-05/0.4377, allocations: 11.34 kB / 376.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.4378, allocations: 15.88 kB / 376.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.641e-05/0.4378, allocations: 16.83 kB / 376.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.4378, allocations: 16.5 kB / 377 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.4406, allocations: 1.238 MB / 378.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.4408, allocations: 144.4 kB / 378.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.958e-05/0.4409, allocations: 18.95 kB / 378.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.4415, allocations: 79.2 kB / 378.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.4418, allocations: 81.34 kB / 378.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.354e-05/0.4419, allocations: 24.42 kB / 378.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.442, allocations: 149.9 kB / 378.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.442, allocations: 0 / 378.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000568/0.4426, allocations: 100.3 kB / 378.8 MB, free: 18.03 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.0001824/0.4428, allocations: 125.5 kB / 378.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002326/0.4451, allocations: 0.8515 MB / 379.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.4452, allocations: 5.266 kB / 379.8 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.4462, allocations: 323.5 kB / 380.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007095/0.4469, allocations: 69.05 kB / 380.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.4493, allocations: 1.129 MB / 381.3 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000525/0.4499, allocations: 0.7842 MB / 382 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005713/0.4505, allocations: 83.22 kB / 382.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.4507, allocations: 30.02 kB / 382.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4507, allocations: 0 / 382.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01376/0.4645, allocations: 5.249 MB / 387.4 MB, free: 14.36 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches