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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0008743/0.0008744, allocations: 176.3 kB / 17.4 MB, free: 4.297 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.316/1.316, allocations: 223.3 MB / 241.4 MB, free: 9.969 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.0008537/0.0008539, allocations: 99.91 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003835, allocations: 15.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2609, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09469/0.3556, allocations: 78.71 MB / 481.5 MB, free: 1.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.3559, allocations: 72.47 kB / 481.5 MB, free: 1.531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006379/0.3623, allocations: 2.392 MB / 483.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3623, allocations: 0 / 483.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.3623, allocations: 4 kB / 483.9 MB, free: 15.14 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004839/0.3628, allocations: 407.1 kB / 484.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.3628, allocations: 12.03 kB / 484.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.3629, allocations: 16.84 kB / 484.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.3631, allocations: 208.8 kB / 484.5 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.3631, allocations: 8.375 kB / 484.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.3631, allocations: 16.36 kB / 484.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004694/0.3636, allocations: 258.7 kB / 484.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3636, allocations: 4.188 kB / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.3637, allocations: 7.938 kB / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3637, allocations: 4 kB / 484.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.3639, allocations: 99.88 kB / 484.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000589/0.3645, allocations: 0.5998 MB / 485.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.3649, allocations: 147.9 kB / 485.7 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.365, allocations: 86.56 kB / 485.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.3651, allocations: 0 / 485.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3651, allocations: 38.56 kB / 485.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.155e-06/0.3651, allocations: 4 kB / 485.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.000475/0.3656, allocations: 189.4 kB / 486 MB, free: 12.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.3656, allocations: 126.9 kB / 486.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.3657, allocations: 119.1 kB / 486.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.3658, allocations: 33.7 kB / 486.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.862e-05/0.3658, allocations: 111.9 kB / 486.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.3659, allocations: 23.73 kB / 486.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.3659, allocations: 4 kB / 486.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.366, allocations: 327.1 kB / 486.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.3661, allocations: 43.97 kB / 486.8 MB, free: 12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.3662, allocations: 142.2 kB / 486.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.3665, allocations: 197.5 kB / 487.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3665, allocations: 3.938 kB / 487.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003435/0.3669, allocations: 213.5 kB / 487.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3669, allocations: 12.06 kB / 487.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3669, allocations: 4 kB / 487.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3669, allocations: 4.234 kB / 487.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.3671, allocations: 43.92 kB / 487.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.3671, allocations: 7.984 kB / 487.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.781e-05/0.3672, allocations: 23.84 kB / 487.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.3672, allocations: 8 kB / 487.4 MB, free: 11.26 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.0001024/0.3673, allocations: 130.3 kB / 487.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.3675, allocations: 101.4 kB / 487.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.494e-05/0.3676, allocations: 12.72 kB / 487.6 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3676, allocations: 7.938 kB / 487.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3676, allocations: 0 / 487.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3676, allocations: 0 / 487.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.3679, allocations: 209.5 kB / 487.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3679, allocations: 0 / 487.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.368, allocations: 51.84 kB / 487.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.3681, allocations: 4 kB / 487.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.3681, allocations: 0 / 487.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3681, allocations: 0 / 487.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3681, allocations: 4 kB / 487.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004968/0.3686, allocations: 398.5 kB / 488.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.3687, allocations: 92.89 kB / 488.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.3687, allocations: 7.938 kB / 488.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.3688, allocations: 16.05 kB / 488.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.3689, allocations: 4 kB / 488.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.3689, allocations: 4 kB / 488.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.249e-05/0.3689, allocations: 99.25 kB / 488.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3689, allocations: 0 / 488.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002944/0.3692, allocations: 31.91 kB / 488.6 MB, free: 10 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.0001112/0.3694, allocations: 107.2 kB / 488.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.3697, allocations: 127.8 kB / 488.8 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3697, allocations: 1.031 kB / 488.8 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.973e-05/0.3698, allocations: 47.84 kB / 488.8 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.3702, allocations: 51.95 kB / 488.9 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006895/0.3709, allocations: 477.7 kB / 489.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.3712, allocations: 0.7203 MB / 490.1 MB, free: 8.426 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.114e-05/0.3713, allocations: 9.078 kB / 490.1 MB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.3714, allocations: 15.44 kB / 490.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3714, allocations: 0 / 490.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of Templates: time 0.003182/0.3745, allocations: 1.033 MB / 491.1 MB, free: 7.387 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches