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.001393/0.001393, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3433, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00385/0.3472, allocations: 2.357 MB / 412.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.3488, allocations: 0.8298 MB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.349, allocations: 12 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003154/0.3494, allocations: 47.58 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.3496, allocations: 63.48 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005268/0.3501, allocations: 179.6 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.3506, allocations: 383.5 kB / 413.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.3508, allocations: 103.8 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.3511, allocations: 167.5 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.3514, allocations: 175.3 kB / 414.2 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.812e-05/0.3515, allocations: 39.94 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.643e-05/0.3515, allocations: 32 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3516, allocations: 99.77 kB / 414.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.3518, allocations: 143.2 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.3522, allocations: 331.9 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3522, allocations: 0 / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3522, allocations: 4 kB / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3522, allocations: 0 / 414.8 MB, free: 12.64 MB / 334.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.001227/0.3534, allocations: 0.6239 MB / 415.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3535, allocations: 15.97 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.744e-05/0.3536, allocations: 36.56 kB / 415.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.354, allocations: 280.3 kB / 415.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.3542, allocations: 138.3 kB / 415.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/0.3543, allocations: 40.31 kB / 416 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.3555, allocations: 0.5621 MB / 416.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3556, allocations: 0 / 416.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.3556, allocations: 12 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3556, allocations: 8 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.357, allocations: 0.5113 MB / 417.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.3585, allocations: 0.9984 MB / 418.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.3601, allocations: 0.5104 MB / 418.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006353/0.3608, allocations: 259.4 kB / 418.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.3609, allocations: 8 kB / 418.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.3609, allocations: 46.5 kB / 418.9 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.517e-06/0.3609, allocations: 3.984 kB / 418.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04015/0.4011, allocations: 5.713 MB / 424.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.4012, allocations: 148.9 kB / 424.7 MB, free: 2.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002471/0.4015, allocations: 201.1 kB / 424.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.847e-05/0.4016, allocations: 37.7 kB / 425 MB, free: 2.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.4017, allocations: 145.5 kB / 425.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.4019, allocations: 189.3 kB / 425.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002942/0.4022, allocations: 110.7 kB / 425.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4024, allocations: 346.8 kB / 425.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.404, allocations: 0.6188 MB / 426.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.4058, allocations: 0.7924 MB / 427.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003104/0.4089, allocations: 1.247 MB / 428.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.409, allocations: 0 / 428.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003667/0.4126, allocations: 1.402 MB / 429.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.4127, allocations: 6.812 kB / 429.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4127, allocations: 8 kB / 429.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.4127, allocations: 8 kB / 429.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.4141, allocations: 215.7 kB / 430 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.212e-05/0.4141, allocations: 15.94 kB / 430 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009751/0.4151, allocations: 95.73 kB / 430.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.916e-05/0.4152, allocations: 31.98 kB / 430.2 MB, free: 12.8 MB / 350.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.0003486/0.4156, allocations: 185.5 kB / 430.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/0.4159, allocations: 161.1 kB / 430.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.4161, allocations: 63.31 kB / 430.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.4161, allocations: 8 kB / 430.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.4161, allocations: 4 kB / 430.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.4162, allocations: 3.984 kB / 430.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004827/0.421, allocations: 2.168 MB / 432.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.421, allocations: 12 kB / 432.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007924/0.4218, allocations: 180.7 kB / 432.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.587e-05/0.4219, allocations: 15.94 kB / 433 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/0.4219, allocations: 31.98 kB / 433 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.858e-05/0.422, allocations: 23.88 kB / 433 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/0.422, allocations: 11.94 kB / 433 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003333/0.4253, allocations: 1.553 MB / 434.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.4256, allocations: 164.6 kB / 434.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.938e-05/0.4256, allocations: 27.98 kB / 434.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.4263, allocations: 71.92 kB / 434.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.4265, allocations: 99.72 kB / 434.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.4265, allocations: 32 kB / 435 MB, free: 7.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.4267, allocations: 140.1 kB / 435.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4267, allocations: 3.938 kB / 435.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006935/0.4274, allocations: 120 kB / 435.2 MB, free: 7.379 MB / 350.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.0001859/0.4276, allocations: 131 kB / 435.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002979/0.4305, allocations: 1.139 MB / 436.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4306, allocations: 1.375 kB / 436.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.4316, allocations: 345.9 kB / 436.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009549/0.4326, allocations: 136.9 kB / 437 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.435, allocations: 1.198 MB / 438.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.4355, allocations: 0.8129 MB / 439 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.4359, allocations: 47.89 kB / 439 MB, free: 3.379 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4359, allocations: 0 / 439 MB, free: 3.379 MB / 350.1 MB Notification: Performance of Templates: time 0.01165/0.4475, allocations: 7.205 MB / 446.2 MB, free: 12.19 MB / 366.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