Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001167, allocations: 180.5 kB / 16.38 MB, free: 5.762 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.327/1.327, 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.0009261/0.0009264, allocations: 107 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002647, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2532, allocations: 50.39 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09611/0.3494, allocations: 78.63 MB / 480.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.3497, allocations: 83.88 kB / 480.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006281/0.356, allocations: 2.357 MB / 482.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.799e-06/0.356, allocations: 4 kB / 482.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.356, allocations: 0 / 482.6 MB, free: 15.45 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006225/0.3567, allocations: 418.9 kB / 483 MB, free: 14.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.3567, allocations: 8.031 kB / 483 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/0.3568, allocations: 15.86 kB / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.357, allocations: 195.8 kB / 483.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.357, allocations: 15.98 kB / 483.2 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.3571, allocations: 16 kB / 483.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.3576, allocations: 253.3 kB / 483.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.3577, allocations: 7.906 kB / 483.5 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.3577, allocations: 7.953 kB / 483.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3577, allocations: 4 kB / 483.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.358, allocations: 91.88 kB / 483.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007561/0.3587, allocations: 0.5882 MB / 484.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.3591, allocations: 156.1 kB / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.3591, allocations: 4 kB / 484.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.3591, allocations: 38.5 kB / 484.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3591, allocations: 0 / 484.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005734/0.3597, allocations: 193.8 kB / 484.5 MB, free: 13.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.3598, allocations: 110.8 kB / 484.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.36, allocations: 125.3 kB / 484.8 MB, free: 12.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.36, allocations: 25.7 kB / 484.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3601, allocations: 111.8 kB / 484.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.3602, allocations: 27.69 kB / 484.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.3602, allocations: 8.125 kB / 484.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.3604, allocations: 322.8 kB / 485.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.3605, allocations: 39.97 kB / 485.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.3608, allocations: 135.8 kB / 485.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.3609, allocations: 61.23 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3609, allocations: 4 kB / 485.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004943/0.3614, allocations: 197.5 kB / 485.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3615, allocations: 8 kB / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3615, allocations: 4 kB / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.3615, allocations: 4 kB / 485.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.3618, allocations: 47.91 kB / 485.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.3618, allocations: 7.953 kB / 485.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3619, allocations: 27.97 kB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3619, allocations: 12 kB / 485.8 MB, free: 11.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001473/0.3621, allocations: 129.8 kB / 485.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.3623, allocations: 81.53 kB / 486 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.3623, allocations: 16.95 kB / 486 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3623, allocations: 7.938 kB / 486 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3623, allocations: 3.984 kB / 486 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3624, allocations: 3.953 kB / 486 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000339/0.3627, allocations: 201.5 kB / 486.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3627, allocations: 4 kB / 486.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.3629, allocations: 39.91 kB / 486.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3629, allocations: 4 kB / 486.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.3629, allocations: 4 kB / 486.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.363, allocations: 4 kB / 486.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.363, allocations: 0 / 486.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006353/0.3636, allocations: 407 kB / 486.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.3637, allocations: 92.92 kB / 486.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.3637, allocations: 7.984 kB / 486.8 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.3639, allocations: 11.95 kB / 486.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.3639, allocations: 15.98 kB / 486.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.3639, allocations: 4 kB / 486.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.577e-05/0.364, allocations: 98.5 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.364, allocations: 0 / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000303/0.3643, allocations: 27.97 kB / 486.9 MB, free: 10.63 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 (14): * Single equations (assignments): 14 * 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.0001256/0.3644, allocations: 111.2 kB / 487 MB, free: 10.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.3647, allocations: 136.5 kB / 487.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3647, allocations: 0 / 487.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.539e-05/0.3648, allocations: 31.92 kB / 487.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000406/0.3653, allocations: 45.03 kB / 487.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007063/0.366, allocations: 469.8 kB / 487.7 MB, free: 9.812 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.3663, allocations: 0.7165 MB / 488.4 MB, free: 9.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.998e-05/0.3663, allocations: 16.64 kB / 488.4 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.3664, allocations: 11.44 kB / 488.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of SimCode: time 1.703e-06/0.3664, allocations: 0 / 488.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of Templates: time 0.003074/0.3695, allocations: 1.002 MB / 489.5 MB, free: 8.082 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches