Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007571/0.0007571, allocations: 101.9 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.372e-05/1.366e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.0949, allocations: 51.47 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3049/0.3998, allocations: 78.7 MB / 473.9 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.4001, allocations: 75.84 kB / 473.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006096/0.4062, allocations: 2.398 MB / 476.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4062, allocations: 0 / 476.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.4062, allocations: 4.75 kB / 476.3 MB, free: 11.73 MB / 346.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.0003971/0.4066, allocations: 409 kB / 476.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.4067, allocations: 12.03 kB / 476.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.847e-05/0.4067, allocations: 11.91 kB / 476.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.4069, allocations: 201.8 kB / 477 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.4069, allocations: 4.859 kB / 477 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.4069, allocations: 4 kB / 477 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001351/0.4071, allocations: 59.41 kB / 477 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.4074, allocations: 200.5 kB / 477.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.4074, allocations: 3.906 kB / 477.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.4074, allocations: 0 / 477.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4074, allocations: 4 kB / 477.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004243/0.4079, allocations: 0.5513 MB / 477.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.408, allocations: 126 kB / 477.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.543e-05/0.4081, allocations: 61.77 kB / 478 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.4081, allocations: 4 kB / 478 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.4081, allocations: 39.12 kB / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.4082, allocations: 0 / 478 MB, free: 10.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002266/0.4084, allocations: 102.2 kB / 478.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.4084, allocations: 116.7 kB / 478.2 MB, free: 9.883 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.946e-05/0.4085, allocations: 114.7 kB / 478.3 MB, free: 9.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.4085, allocations: 25.7 kB / 478.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.4086, allocations: 112.8 kB / 478.5 MB, free: 9.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.4086, allocations: 27.22 kB / 478.5 MB, free: 9.621 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-06/0.4086, allocations: 4.031 kB / 478.5 MB, free: 9.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.4086, allocations: 324.5 kB / 478.8 MB, free: 9.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.284e-05/0.4087, allocations: 18.19 kB / 478.8 MB, free: 9.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-05/0.4087, allocations: 115.8 kB / 478.9 MB, free: 9.148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.163e-05/0.4088, allocations: 34.17 kB / 479 MB, free: 9.125 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4088, allocations: 0 / 479 MB, free: 9.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001681/0.409, allocations: 137.9 kB / 479.1 MB, free: 9.012 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.409, allocations: 12 kB / 479.1 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.409, allocations: 7.953 kB / 479.1 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.409, allocations: 5.5 kB / 479.1 MB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.4092, allocations: 47.72 kB / 479.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.4092, allocations: 5.547 kB / 479.2 MB, free: 8.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.545e-05/0.4093, allocations: 21.25 kB / 479.2 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.4094, allocations: 11.94 kB / 479.2 MB, free: 8.918 MB / 346.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 () * 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 4.946e-05/0.4094, allocations: 114.3 kB / 479.3 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.4095, allocations: 73.66 kB / 479.4 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.769e-05/0.4096, allocations: 20.91 kB / 479.4 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4096, allocations: 7.953 kB / 479.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4096, allocations: 1.453 kB / 479.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4096, allocations: 0 / 479.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.4098, allocations: 168.6 kB / 479.6 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4098, allocations: 0 / 479.6 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.4099, allocations: 41 kB / 479.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.41, allocations: 4 kB / 479.6 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.41, allocations: 5.719 kB / 479.7 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.41, allocations: 3.938 kB / 479.7 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.41, allocations: 4 kB / 479.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.4102, allocations: 340.1 kB / 480 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.661e-05/0.4103, allocations: 88.98 kB / 480.1 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.4103, allocations: 8.891 kB / 480.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.4104, allocations: 7.141 kB / 480.1 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.4105, allocations: 8.359 kB / 480.1 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.4105, allocations: 5.453 kB / 480.1 MB, free: 8.059 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.4105, allocations: 98.77 kB / 480.2 MB, free: 7.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.502e-06/0.4105, allocations: 4.062 kB / 480.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002994/0.4108, allocations: 31.84 kB / 480.2 MB, free: 7.938 MB / 346.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 () * 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.0001124/0.411, allocations: 96.61 kB / 480.3 MB, free: 7.836 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.4111, allocations: 82.27 kB / 480.4 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.4111, allocations: 0 / 480.4 MB, free: 7.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.578e-05/0.4111, allocations: 15.88 kB / 480.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.4115, allocations: 43.69 kB / 480.5 MB, free: 7.734 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005139/0.412, allocations: 291.9 kB / 480.8 MB, free: 7.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.4122, allocations: 0.7141 MB / 481.5 MB, free: 6.742 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.443e-05/0.4122, allocations: 7.125 kB / 481.5 MB, free: 6.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.4123, allocations: 17.08 kB / 481.5 MB, free: 6.723 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4123, allocations: 4 kB / 481.5 MB, free: 6.719 MB / 346.7 MB Notification: Performance of Templates: time 0.003028/0.4153, allocations: 0.9602 MB / 482.5 MB, free: 6.188 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches