Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,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.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007191/0.0007194, allocations: 91.72 kB / 17.31 MB, free: 5.934 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.000973/0.000973, allocations: 180.3 kB / 18.22 MB, free: 5.395 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.28/1.28, allocations: 223.3 MB / 242.3 MB, free: 8 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002338, allocations: 7.938 kB / 302.1 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07558/0.07583, allocations: 50.41 MB / 352.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001965/0.07783, allocations: 1.702 MB / 354.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007142/0.07856, allocations: 0.5065 MB / 354.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.751e-05/0.07865, allocations: 0 / 354.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.786e-05/0.07874, allocations: 15.86 kB / 354.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.07886, allocations: 23.84 kB / 354.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.07908, allocations: 55.81 kB / 354.8 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.07922, allocations: 111.6 kB / 354.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.07936, allocations: 56.89 kB / 355 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.303e-05/0.07943, allocations: 35.86 kB / 355 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.357e-05/0.07951, allocations: 55.69 kB / 355 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.07953, allocations: 4 kB / 355.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.81e-05/0.07956, allocations: 4 kB / 355.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.07959, allocations: 15.94 kB / 355.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.584e-05/0.07966, allocations: 77.38 kB / 355.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.07977, allocations: 95.97 kB / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.07978, allocations: 0 / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.07978, allocations: 0 / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.07979, allocations: 0 / 355.2 MB, free: 0.8945 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005082/0.0803, allocations: 415.1 kB / 355.6 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.08034, allocations: 12.03 kB / 355.7 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.08039, allocations: 16.75 kB / 355.7 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.08056, allocations: 207.3 kB / 355.9 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.08059, allocations: 12.36 kB / 355.9 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.08062, allocations: 12.38 kB / 355.9 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.0811, allocations: 250.8 kB / 356.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.08113, allocations: 3.906 kB / 356.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.08115, allocations: 8 kB / 356.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.08116, allocations: 4 kB / 356.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.08144, allocations: 99.88 kB / 356.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.08199, allocations: 0.5882 MB / 356.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.08234, allocations: 155.7 kB / 357 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.08252, allocations: 86.75 kB / 357.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.08255, allocations: 0 / 357.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.08258, allocations: 46.55 kB / 357.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.143e-06/0.08259, allocations: 0 / 357.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005252/0.08312, allocations: 197.4 kB / 357.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.08318, allocations: 115.2 kB / 357.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.68e-05/0.08328, allocations: 130.2 kB / 357.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.0833, allocations: 29.7 kB / 357.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.66e-05/0.08337, allocations: 119.7 kB / 357.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.08339, allocations: 23.7 kB / 357.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.08343, allocations: 21.72 kB / 357.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.904e-05/0.08353, allocations: 322.8 kB / 358.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.08366, allocations: 51.91 kB / 358.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.08384, allocations: 140.9 kB / 358.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.08415, allocations: 197.5 kB / 358.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.08416, allocations: 3.938 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003774/0.08454, allocations: 205.5 kB / 358.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.08457, allocations: 14.33 kB / 358.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.08458, allocations: 4 kB / 358.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.0846, allocations: 4 kB / 358.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.08476, allocations: 47.92 kB / 358.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.08478, allocations: 11.98 kB / 358.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.08489, allocations: 19.84 kB / 358.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.08492, allocations: 16.12 kB / 358.8 MB, free: 12.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.749e-05/0.08501, allocations: 130.2 kB / 358.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.08516, allocations: 93.45 kB / 359 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.333e-05/0.08523, allocations: 20.72 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.08525, allocations: 0 / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.08526, allocations: 7.938 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.08526, allocations: 0 / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.08552, allocations: 205.5 kB / 359.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.08553, allocations: 0 / 359.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.08573, allocations: 51.91 kB / 359.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.08574, allocations: 0 / 359.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.08576, allocations: 4 kB / 359.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.08576, allocations: 0 / 359.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.08577, allocations: 0 / 359.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.08629, allocations: 398.2 kB / 359.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.08635, allocations: 92.89 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.08638, allocations: 8 kB / 359.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.08653, allocations: 19.98 kB / 359.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.08657, allocations: 0 / 359.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.08658, allocations: 8.094 kB / 359.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.187e-05/0.08664, allocations: 103.2 kB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08665, allocations: 0 / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.08699, allocations: 28 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 8.018e-05/0.08707, allocations: 103.2 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.0874, allocations: 128.9 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.08741, allocations: 0 / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.08752, allocations: 39.97 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.08798, allocations: 56.14 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006552/0.08865, allocations: 0.507 MB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.08889, allocations: 0.7165 MB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.08893, allocations: 19.31 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.08894, allocations: 0 / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Templates: time 0.002692/0.09164, allocations: 1.501 MB / 363 MB, free: 8.59 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches