Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 179.5 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008921/0.0008921, allocations: 95.36 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002433, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2469, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1034/0.3503, allocations: 78.87 MB / 480.4 MB, free: 1.625 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3506, allocations: 73.22 kB / 480.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007423/0.3581, allocations: 2.768 MB / 483.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.3581, allocations: 4 kB / 483.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3581, allocations: 0 / 483.2 MB, free: 14.79 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005301/0.3586, allocations: 438.7 kB / 483.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3587, allocations: 8.031 kB / 483.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.3587, allocations: 20 kB / 483.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.359, allocations: 214.8 kB / 483.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.359, allocations: 8 kB / 483.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.788e-05/0.3591, allocations: 16 kB / 483.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.3595, allocations: 262.3 kB / 484.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3596, allocations: 0 / 484.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.3596, allocations: 7.953 kB / 484.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.3596, allocations: 4 kB / 484.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.3598, allocations: 95.88 kB / 484.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006295/0.3605, allocations: 0.6038 MB / 484.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.3608, allocations: 159.6 kB / 485 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3609, allocations: 4 kB / 485 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.3609, allocations: 38.69 kB / 485.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.3609, allocations: 0 / 485.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005139/0.3614, allocations: 201.4 kB / 485.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.3615, allocations: 110.8 kB / 485.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.3616, allocations: 138.1 kB / 485.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.3617, allocations: 29.7 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.3617, allocations: 120.5 kB / 485.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.3618, allocations: 19.8 kB / 485.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.735e-06/0.3618, allocations: 4 kB / 485.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3619, allocations: 327.2 kB / 486 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.362, allocations: 40.34 kB / 486 MB, free: 11.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3622, allocations: 145.4 kB / 486.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.3624, allocations: 59.98 kB / 486.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3624, allocations: 7.938 kB / 486.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003638/0.3628, allocations: 209 kB / 486.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3628, allocations: 4 kB / 486.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3628, allocations: 4 kB / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.3628, allocations: 8 kB / 486.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.363, allocations: 44.39 kB / 486.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.363, allocations: 11.98 kB / 486.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3631, allocations: 23.84 kB / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.3631, allocations: 8 kB / 486.5 MB, free: 11.12 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.3632, allocations: 145.7 kB / 486.7 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.3634, allocations: 85.53 kB / 486.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.922e-05/0.3635, allocations: 20.7 kB / 486.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3636, allocations: 8 kB / 486.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3636, allocations: 3.938 kB / 486.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3636, allocations: 0 / 486.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003093/0.3639, allocations: 221.5 kB / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3639, allocations: 0 / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.3641, allocations: 39.91 kB / 487.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3641, allocations: 0 / 487.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.3641, allocations: 8 kB / 487.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3641, allocations: 0 / 487.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3641, allocations: 4 kB / 487.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.3647, allocations: 425.5 kB / 487.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.983e-05/0.3648, allocations: 101 kB / 487.6 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.3648, allocations: 4 kB / 487.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.3649, allocations: 11.98 kB / 487.6 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.651e-05/0.365, allocations: 11.92 kB / 487.6 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.365, allocations: 16.06 kB / 487.6 MB, free: 9.926 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.192e-05/0.3651, allocations: 117 kB / 487.7 MB, free: 9.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3651, allocations: 0 / 487.7 MB, free: 9.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002937/0.3654, allocations: 31.91 kB / 487.8 MB, free: 9.781 MB / 362.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 () * 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 (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.0001174/0.3655, allocations: 111.5 kB / 487.9 MB, free: 9.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003154/0.3658, allocations: 143.7 kB / 488 MB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3659, allocations: 96 / 488 MB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.659e-05/0.366, allocations: 40.8 kB / 488.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.3663, allocations: 63.66 kB / 488.1 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.367, allocations: 0.49 MB / 488.6 MB, free: 8.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3673, allocations: 0.7323 MB / 489.3 MB, free: 8.141 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.978e-05/0.3673, allocations: 9.422 kB / 489.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.3674, allocations: 15.44 kB / 489.4 MB, free: 8.113 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3674, allocations: 0 / 489.4 MB, free: 8.113 MB / 362.7 MB Notification: Performance of Templates: time 0.003229/0.3706, allocations: 1.146 MB / 490.5 MB, free: 7.008 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches