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.001147/0.001147, allocations: 106.9 kB / 16.92 MB, free: 5.781 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.001382/0.001382, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.378/1.378, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 43.36 kB / 300.6 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1131, allocations: 49.46 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003613/0.1167, allocations: 2.133 MB / 352.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.118, allocations: 0.6471 MB / 352.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1182, allocations: 7.938 kB / 352.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002981/0.1185, allocations: 47.64 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.1187, allocations: 51.62 kB / 352.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.1191, allocations: 123.8 kB / 353.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.1194, allocations: 335.2 kB / 353.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1196, allocations: 76.2 kB / 353.5 MB, free: 1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1199, allocations: 139.5 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.1201, allocations: 155.4 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.1202, allocations: 28 kB / 353.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.333e-05/0.1202, allocations: 28 kB / 353.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.48e-05/0.1204, allocations: 91.73 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1205, allocations: 123.4 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.1208, allocations: 275.4 kB / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1208, allocations: 4 kB / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1208, allocations: 0 / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1208, allocations: 0 / 354.3 MB, free: 176 kB / 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.001131/0.1219, allocations: 0.5728 MB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.122, allocations: 11.89 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.1221, allocations: 32.66 kB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.1224, allocations: 252.4 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.1226, allocations: 138.2 kB / 355.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.1227, allocations: 23.94 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008042/0.1235, allocations: 367.6 kB / 355.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1235, allocations: 0 / 355.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.1235, allocations: 8 kB / 355.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1235, allocations: 8 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.1249, allocations: 0.4901 MB / 356.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.1266, allocations: 1.015 MB / 357.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1278, allocations: 343.1 kB / 357.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004867/0.1283, allocations: 177.2 kB / 357.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.1283, allocations: 4.234 kB / 357.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.1283, allocations: 38.73 kB / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.033e-06/0.1283, allocations: 4 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02816/0.1565, allocations: 5.79 MB / 363.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1566, allocations: 59.84 kB / 363.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.157, allocations: 206.8 kB / 363.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.326e-05/0.1571, allocations: 33.7 kB / 363.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.1572, allocations: 152.6 kB / 364 MB, free: 6.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.1574, allocations: 177.4 kB / 364.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.1576, allocations: 90.17 kB / 364.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1578, allocations: 338.8 kB / 364.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.1591, allocations: 464.8 kB / 365 MB, free: 5.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.1604, allocations: 0.5177 MB / 365.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.1628, allocations: 0.8071 MB / 366.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1628, allocations: 0 / 366.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002809/0.1656, allocations: 0.9865 MB / 367.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.1656, allocations: 7.938 kB / 367.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1657, allocations: 8.062 kB / 367.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.1657, allocations: 8 kB / 367.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.1667, allocations: 167.8 kB / 367.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1667, allocations: 3.938 kB / 367.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/0.1674, allocations: 83.89 kB / 367.6 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.1675, allocations: 20 kB / 367.6 MB, free: 2.453 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.0002644/0.1678, allocations: 157.8 kB / 367.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1679, allocations: 31.56 kB / 367.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.168, allocations: 51.3 kB / 367.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.168, allocations: 8 kB / 367.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.168, allocations: 0 / 367.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1681, allocations: 0 / 367.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004204/0.1723, allocations: 1.878 MB / 369.7 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.1723, allocations: 8 kB / 369.7 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/0.1729, allocations: 139.8 kB / 369.9 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1736/0.3465, allocations: 12.67 kB / 369.9 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002038/0.3468, allocations: 21.92 kB / 369.9 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-05/0.3468, allocations: 16.39 kB / 369.9 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.747e-05/0.3469, allocations: 12.22 kB / 369.9 MB, free: 26.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.3501, allocations: 1.219 MB / 371.2 MB, free: 25.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.3504, allocations: 149.7 kB / 371.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.3504, allocations: 20.02 kB / 371.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005502/0.351, allocations: 70.94 kB / 371.4 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.3512, allocations: 88.8 kB / 371.5 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.3513, allocations: 22.59 kB / 371.5 MB, free: 25.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.3515, allocations: 146.9 kB / 371.7 MB, free: 25.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3515, allocations: 0.5625 kB / 371.7 MB, free: 25.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005456/0.352, allocations: 97.03 kB / 371.7 MB, free: 25.54 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.000194/0.3522, allocations: 127.2 kB / 371.9 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.355, allocations: 0.8739 MB / 372.7 MB, free: 25.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/0.355, allocations: 1.25 kB / 372.7 MB, free: 25.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.3561, allocations: 334.3 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.3568, allocations: 61.52 kB / 373.1 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.359, allocations: 1.024 MB / 374.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3593, allocations: 0.7789 MB / 374.9 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004566/0.3598, allocations: 75.23 kB / 375 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.36, allocations: 39.91 kB / 375 MB, free: 23.84 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.36, allocations: 0 / 375 MB, free: 23.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01329/0.3733, allocations: 5.671 MB / 380.7 MB, free: 22.96 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches