Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008794/0.0008797, allocations: 91.25 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/3e-05, allocations: 4 kB / 350.5 MB, free: 2.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09902/0.09906, allocations: 51.49 MB / 402 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3268/0.4259, allocations: 79.54 MB / 481.6 MB, free: 9.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/0.4261, allocations: 66.47 kB / 481.6 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006225/0.4324, allocations: 2.709 MB / 484.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4324, allocations: 0 / 484.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.4324, allocations: 4 kB / 484.3 MB, free: 7.617 MB / 346.7 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.000372/0.4328, allocations: 404.2 kB / 484.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4328, allocations: 12.03 kB / 484.7 MB, free: 7.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.4329, allocations: 12.44 kB / 484.8 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.433, allocations: 206.9 kB / 485 MB, free: 6.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.4331, allocations: 8.734 kB / 485 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.4331, allocations: 15.86 kB / 485 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.4334, allocations: 212.9 kB / 485.2 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.4335, allocations: 4 kB / 485.2 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.4335, allocations: 6.266 kB / 485.2 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.4335, allocations: 4 kB / 485.2 MB, free: 6.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001004/0.4336, allocations: 59.23 kB / 485.3 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000494/0.4341, allocations: 0.5909 MB / 485.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.4343, allocations: 142.3 kB / 486 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.202e-05/0.4344, allocations: 59.7 kB / 486 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.4344, allocations: 8 kB / 486.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.4345, allocations: 38.58 kB / 486.1 MB, free: 5.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.4345, allocations: 0 / 486.1 MB, free: 5.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002189/0.4347, allocations: 119.6 kB / 486.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.4348, allocations: 110.2 kB / 486.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.496e-05/0.4348, allocations: 123.2 kB / 486.4 MB, free: 5.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.4349, allocations: 33.23 kB / 486.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.65e-05/0.4349, allocations: 113.7 kB / 486.6 MB, free: 5.328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.4349, allocations: 27.02 kB / 486.6 MB, free: 5.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.435, allocations: 3.438 kB / 486.6 MB, free: 5.305 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.988e-05/0.435, allocations: 328.6 kB / 486.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.174e-05/0.4351, allocations: 22.81 kB / 487 MB, free: 4.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.669e-05/0.4351, allocations: 126.9 kB / 487.1 MB, free: 4.805 MB / 346.7 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 = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.4353, allocations: 139.1 kB / 487.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4353, allocations: 0 / 487.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001949/0.4355, allocations: 172.3 kB / 487.4 MB, free: 4.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.4355, allocations: 8.469 kB / 487.4 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4356, allocations: 11.95 kB / 487.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4356, allocations: 4 kB / 487.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.4357, allocations: 43.92 kB / 487.5 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.4357, allocations: 11.92 kB / 487.5 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.6e-05/0.4358, allocations: 22.78 kB / 487.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.4359, allocations: 12.16 kB / 487.5 MB, free: 4.41 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.682e-05/0.4359, allocations: 119 kB / 487.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.4361, allocations: 91.41 kB / 487.7 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.4361, allocations: 15.12 kB / 487.7 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4361, allocations: 3.953 kB / 487.7 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.4361, allocations: 8.75 kB / 487.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4361, allocations: 0 / 487.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.4363, allocations: 210.2 kB / 487.9 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4363, allocations: 7.938 kB / 487.9 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001904/0.4365, allocations: 39.97 kB / 488 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.4365, allocations: 8 kB / 488 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.4365, allocations: 5.062 kB / 488 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4366, allocations: 0 / 488 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4366, allocations: 7.953 kB / 488 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002485/0.4368, allocations: 367.7 kB / 488.4 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.608e-05/0.4368, allocations: 96.28 kB / 488.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.4369, allocations: 0 / 488.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.437, allocations: 14.86 kB / 488.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.819e-05/0.437, allocations: 0 / 488.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.4371, allocations: 4 kB / 488.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.092e-05/0.4371, allocations: 106.4 kB / 488.6 MB, free: 3.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4371, allocations: 0 / 488.6 MB, free: 3.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003019/0.4374, allocations: 32.78 kB / 488.6 MB, free: 3.305 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001039/0.4375, allocations: 118.5 kB / 488.7 MB, free: 3.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.4377, allocations: 86.25 kB / 488.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.4377, allocations: 0 / 488.8 MB, free: 3.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.913e-05/0.4377, allocations: 20.62 kB / 488.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.438, allocations: 65.83 kB / 488.9 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005251/0.4386, allocations: 313.6 kB / 489.2 MB, free: 2.754 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.4387, allocations: 0.7238 MB / 489.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.174e-05/0.4387, allocations: 13.2 kB / 489.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.787e-05/0.4388, allocations: 19.44 kB / 490 MB, free: 1.973 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4388, allocations: 0 / 490 MB, free: 1.973 MB / 346.7 MB Notification: Performance of Templates: time 0.00293/0.4417, allocations: 1.136 MB / 491.1 MB, free: 0.8984 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches