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.001047/0.001047, allocations: 171 kB / 17.39 MB, free: 4.426 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.326/1.326, allocations: 223.3 MB / 241.4 MB, free: 9.887 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.000794/0.0007942, allocations: 93.98 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004499, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2899, allocations: 50.41 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09786/0.3878, allocations: 78.67 MB / 481.4 MB, free: 1.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.3881, allocations: 75.95 kB / 481.5 MB, free: 1.602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00669/0.3948, allocations: 2.368 MB / 483.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3949, allocations: 3.938 kB / 483.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3949, allocations: 4 kB / 483.9 MB, free: 15.23 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.0005867/0.3955, allocations: 411.1 kB / 484.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.3956, allocations: 8.031 kB / 484.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.3956, allocations: 12.84 kB / 484.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.3959, allocations: 204 kB / 484.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.3959, allocations: 8.375 kB / 484.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.396, allocations: 12.38 kB / 484.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.3965, allocations: 255.3 kB / 484.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3965, allocations: 4.172 kB / 484.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.3966, allocations: 11.94 kB / 484.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3966, allocations: 0 / 484.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.3968, allocations: 98.41 kB / 484.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008034/0.3976, allocations: 0.596 MB / 485.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.398, allocations: 155.9 kB / 485.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3981, allocations: 78.64 kB / 485.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3982, allocations: 0 / 485.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.3982, allocations: 38.56 kB / 485.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.3982, allocations: 0 / 485.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000562/0.3988, allocations: 193.4 kB / 485.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.3989, allocations: 119.1 kB / 486 MB, free: 12.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.399, allocations: 130.2 kB / 486.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.3991, allocations: 33.64 kB / 486.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.26e-05/0.3991, allocations: 107.9 kB / 486.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.3992, allocations: 23.7 kB / 486.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/0.3992, allocations: 4.031 kB / 486.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3994, allocations: 326.8 kB / 486.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.3995, allocations: 35.97 kB / 486.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.3997, allocations: 140.9 kB / 486.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.4, allocations: 188.7 kB / 487 MB, free: 11.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4, allocations: 0 / 487 MB, free: 11.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000376/0.4004, allocations: 197.5 kB / 487.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.4004, allocations: 11.94 kB / 487.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4004, allocations: 4 kB / 487.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.4005, allocations: 4 kB / 487.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.4007, allocations: 47.91 kB / 487.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.4007, allocations: 7.938 kB / 487.3 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.4008, allocations: 27.83 kB / 487.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.4008, allocations: 12.16 kB / 487.3 MB, free: 11.4 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.000146/0.401, allocations: 129.7 kB / 487.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.4011, allocations: 81.5 kB / 487.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.4012, allocations: 24.59 kB / 487.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.4012, allocations: 3.938 kB / 487.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/0.4012, allocations: 4 kB / 487.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.4012, allocations: 3.984 kB / 487.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.4015, allocations: 197.6 kB / 487.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4015, allocations: 0 / 487.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.4017, allocations: 39.97 kB / 487.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.4017, allocations: 4 kB / 487.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.4018, allocations: 4 kB / 487.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.4018, allocations: 7.938 kB / 487.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4018, allocations: 4.234 kB / 487.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005573/0.4023, allocations: 391.4 kB / 488.2 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.4024, allocations: 88.95 kB / 488.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.4024, allocations: 4.062 kB / 488.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.4026, allocations: 19.92 kB / 488.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.4026, allocations: 96 / 488.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.4027, allocations: 7.938 kB / 488.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.392e-05/0.4027, allocations: 106.6 kB / 488.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4027, allocations: 0 / 488.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.4031, allocations: 28 kB / 488.4 MB, free: 10.17 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.0001798/0.4032, allocations: 119.1 kB / 488.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003231/0.4036, allocations: 120.6 kB / 488.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4036, allocations: 64 / 488.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.4037, allocations: 39.91 kB / 488.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.4043, allocations: 52.56 kB / 488.8 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008353/0.4051, allocations: 469.6 kB / 489.2 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.4055, allocations: 0.7126 MB / 489.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.368e-05/0.4056, allocations: 8.641 kB / 489.9 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.528e-05/0.4056, allocations: 15.44 kB / 489.9 MB, free: 8.59 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4056, allocations: 0 / 489.9 MB, free: 8.59 MB / 362.7 MB Notification: Performance of Templates: time 0.003769/0.4094, allocations: 1.02 MB / 491 MB, free: 7.613 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/jenkins1/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