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.001502/0.001502, allocations: 179.9 kB / 16.38 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.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0007613/0.0007613, allocations: 94.55 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002611, allocations: 11.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2474, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09777/0.3452, allocations: 78.66 MB / 480.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.3455, allocations: 72.98 kB / 480.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006449/0.352, allocations: 2.378 MB / 482.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.352, allocations: 0 / 482.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.352, allocations: 4 kB / 482.6 MB, free: 15.38 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.0005524/0.3526, allocations: 418.8 kB / 483 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3527, allocations: 12.03 kB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.3527, allocations: 7.906 kB / 483 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.353, allocations: 204.5 kB / 483.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.353, allocations: 12 kB / 483.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.353, allocations: 12 kB / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.3535, allocations: 251 kB / 483.5 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3536, allocations: 7.906 kB / 483.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.3536, allocations: 15.95 kB / 483.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3536, allocations: 0 / 483.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.3539, allocations: 95.88 kB / 483.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.3546, allocations: 0.6037 MB / 484.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.3549, allocations: 152 kB / 484.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.355, allocations: 3.984 kB / 484.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.355, allocations: 38.56 kB / 484.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.355, allocations: 0 / 484.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005083/0.3555, allocations: 193.4 kB / 484.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.3556, allocations: 110.9 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.847e-05/0.3557, allocations: 128.9 kB / 484.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3557, allocations: 29.7 kB / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.3558, allocations: 111.9 kB / 485 MB, free: 12.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.3558, allocations: 27.64 kB / 485 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-06/0.3558, allocations: 4 kB / 485 MB, free: 12.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.356, allocations: 326.8 kB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3561, allocations: 44.34 kB / 485.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3562, allocations: 134.5 kB / 485.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.3564, allocations: 69.22 kB / 485.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3564, allocations: 0 / 485.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003621/0.3568, allocations: 197.2 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3568, allocations: 4.469 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3568, allocations: 7.938 kB / 485.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3568, allocations: 12 kB / 485.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.357, allocations: 43.97 kB / 485.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.357, allocations: 7.938 kB / 485.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3571, allocations: 27.83 kB / 485.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.3572, allocations: 8.375 kB / 485.9 MB, free: 11.78 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.0001133/0.3573, allocations: 136.7 kB / 486 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3574, allocations: 93.47 kB / 486.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.877e-05/0.3575, allocations: 20.7 kB / 486.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3575, allocations: 4 kB / 486.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3575, allocations: 3.938 kB / 486.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3576, allocations: 0 / 486.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002495/0.3578, allocations: 213.4 kB / 486.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3578, allocations: 4 kB / 486.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.358, allocations: 31.98 kB / 486.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.358, allocations: 3.984 kB / 486.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.358, allocations: 12 kB / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.358, allocations: 0 / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.358, allocations: 0 / 486.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.3586, allocations: 413.9 kB / 486.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.3586, allocations: 96.88 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.3587, allocations: 8 kB / 486.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3588, allocations: 16.05 kB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.3589, allocations: 3.984 kB / 486.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3589, allocations: 11.95 kB / 486.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.317e-05/0.3589, allocations: 95.27 kB / 487 MB, free: 10.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3589, allocations: 0 / 487 MB, free: 10.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002956/0.3592, allocations: 28 kB / 487 MB, free: 10.5 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.0001358/0.3594, allocations: 119.1 kB / 487.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.3597, allocations: 128.6 kB / 487.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3597, allocations: 0 / 487.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.486e-05/0.3598, allocations: 40.03 kB / 487.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.3602, allocations: 55.94 kB / 487.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006685/0.3608, allocations: 476.6 kB / 487.8 MB, free: 9.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.3611, allocations: 0.7206 MB / 488.6 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.648e-05/0.3612, allocations: 9.453 kB / 488.6 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.141e-05/0.3612, allocations: 15.44 kB / 488.6 MB, free: 8.891 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3612, allocations: 0 / 488.6 MB, free: 8.891 MB / 362.7 MB Notification: Performance of Templates: time 0.003171/0.3644, allocations: 1.025 MB / 489.6 MB, free: 7.883 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/jenkins/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