Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 114.2 kB / 17.07 MB, free: 5.961 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.001942/0.001942, allocations: 198.8 kB / 18 MB, free: 5.051 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 47.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4402/0.442, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003817/0.4458, allocations: 2.054 MB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.4469, allocations: 0.5025 MB / 403.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.4471, allocations: 8 kB / 403.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.4472, allocations: 15.8 kB / 403.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.4474, allocations: 35.7 kB / 403.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.4477, allocations: 54.62 kB / 403.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.4479, allocations: 131.5 kB / 403.5 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.4481, allocations: 53.8 kB / 403.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.4482, allocations: 47.78 kB / 403.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.4483, allocations: 55.77 kB / 403.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.4483, allocations: 12 kB / 403.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.938e-05/0.4483, allocations: 11.94 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.4484, allocations: 23.92 kB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.4484, allocations: 63.67 kB / 403.8 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.4486, allocations: 132.6 kB / 403.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4487, allocations: 0 / 403.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4487, allocations: 8 kB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.4487, allocations: 0 / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006156/0.4493, allocations: 427 kB / 404.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.4493, allocations: 11.97 kB / 404.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.4494, allocations: 12.84 kB / 404.3 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.4497, allocations: 216 kB / 404.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.4497, allocations: 12.38 kB / 404.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.4497, allocations: 12.38 kB / 404.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.4502, allocations: 238.8 kB / 404.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.4503, allocations: 4 kB / 404.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.4503, allocations: 8 kB / 404.8 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4503, allocations: 0 / 404.8 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002638/0.4506, allocations: 87.88 kB / 404.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000689/0.4513, allocations: 0.5998 MB / 405.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.4516, allocations: 143.9 kB / 405.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.4518, allocations: 74.62 kB / 405.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.4518, allocations: 0 / 405.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.4519, allocations: 42.5 kB / 405.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.4519, allocations: 0 / 405.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005144/0.4524, allocations: 177.3 kB / 405.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.4525, allocations: 114.8 kB / 406 MB, free: 3.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.4526, allocations: 138.2 kB / 406.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4526, allocations: 29.7 kB / 406.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.437e-05/0.4527, allocations: 119.7 kB / 406.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.4527, allocations: 23.7 kB / 406.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.4528, allocations: 37.84 kB / 406.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4529, allocations: 318.8 kB / 406.7 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.453, allocations: 39.97 kB / 406.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.4532, allocations: 143.1 kB / 406.9 MB, free: 2.348 MB / 318.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0005444/0.4538, allocations: 275.1 kB / 407.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.4538, allocations: 4 kB / 407.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004584/0.4543, allocations: 197.1 kB / 407.3 MB, free: 1.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.4543, allocations: 7.984 kB / 407.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.4543, allocations: 7.938 kB / 407.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.4544, allocations: 8.469 kB / 407.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.4545, allocations: 47.92 kB / 407.4 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.4546, allocations: 4 kB / 407.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.4547, allocations: 19.83 kB / 407.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.4547, allocations: 23.92 kB / 407.5 MB, free: 1.691 MB / 318.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 0.0001598/0.4549, allocations: 133.7 kB / 407.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.4551, allocations: 89.52 kB / 407.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.479e-05/0.4552, allocations: 16.72 kB / 407.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.4552, allocations: 8.234 kB / 407.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4552, allocations: 0 / 407.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4552, allocations: 3.984 kB / 407.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002993/0.4555, allocations: 225.4 kB / 407.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4555, allocations: 0 / 407.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.4558, allocations: 39.97 kB / 408 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4558, allocations: 0 / 408 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4558, allocations: 4 kB / 408 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.4558, allocations: 0 / 408 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4558, allocations: 3.938 kB / 408 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000566/0.4564, allocations: 387.3 kB / 408.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.4564, allocations: 85.05 kB / 408.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.4565, allocations: 8 kB / 408.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.4566, allocations: 16.05 kB / 408.5 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.4567, allocations: 4 kB / 408.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.4567, allocations: 7.984 kB / 408.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.063e-05/0.4568, allocations: 102 kB / 408.6 MB, free: 484 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4568, allocations: 0 / 408.6 MB, free: 484 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003488/0.4571, allocations: 31.94 kB / 408.6 MB, free: 452 kB / 318.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 0.0001073/0.4572, allocations: 111.1 kB / 408.7 MB, free: 332 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003669/0.4576, allocations: 127.1 kB / 408.8 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4576, allocations: 4 kB / 408.8 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.987e-05/0.4577, allocations: 23.98 kB / 408.9 MB, free: 180 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.4582, allocations: 68.91 kB / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008531/0.4591, allocations: 426.4 kB / 409.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.4594, allocations: 0.7201 MB / 410.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.197e-05/0.4594, allocations: 9.078 kB / 410.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.4595, allocations: 15.44 kB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4595, allocations: 0 / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Templates: time 0.004189/0.4637, allocations: 1.351 MB / 411.4 MB, free: 13.57 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches