Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007714/0.0007715, allocations: 99.83 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.794e-05/1.811e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.09212, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3079/0.4001, allocations: 78.74 MB / 473.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.4003, allocations: 73.98 kB / 474 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006037/0.4063, allocations: 2.421 MB / 476.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4064, allocations: 0 / 476.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.4064, allocations: 4 kB / 476.4 MB, free: 11.68 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003881/0.4068, allocations: 407.2 kB / 476.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.4068, allocations: 12.03 kB / 476.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/0.4069, allocations: 13.17 kB / 476.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.4071, allocations: 199.5 kB / 477 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.4071, allocations: 4 kB / 477 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.4071, allocations: 9.453 kB / 477 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001375/0.4073, allocations: 67.67 kB / 477.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.4076, allocations: 205.9 kB / 477.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4076, allocations: 6.984 kB / 477.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.4076, allocations: 4 kB / 477.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.4076, allocations: 2.719 kB / 477.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004362/0.4081, allocations: 0.5559 MB / 477.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4083, allocations: 133.9 kB / 478 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.714e-05/0.4084, allocations: 56.77 kB / 478 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4084, allocations: 5.781 kB / 478.1 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.4084, allocations: 38 kB / 478.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.4084, allocations: 0 / 478.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002216/0.4087, allocations: 106.7 kB / 478.2 MB, free: 9.949 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.4087, allocations: 114.9 kB / 478.3 MB, free: 9.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.27e-05/0.4088, allocations: 123.1 kB / 478.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.4088, allocations: 25.7 kB / 478.5 MB, free: 9.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.727e-05/0.4089, allocations: 109.7 kB / 478.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.4089, allocations: 22.38 kB / 478.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-06/0.4089, allocations: 0 / 478.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.051e-05/0.4089, allocations: 321.6 kB / 478.9 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.474e-05/0.409, allocations: 26.25 kB / 478.9 MB, free: 9.215 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-05/0.4091, allocations: 119.9 kB / 479 MB, free: 9.066 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.778e-05/0.4091, allocations: 43.91 kB / 479.1 MB, free: 9.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4091, allocations: 4 kB / 479.1 MB, free: 9.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001798/0.4093, allocations: 135.8 kB / 479.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4093, allocations: 11.97 kB / 479.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.4094, allocations: 8 kB / 479.2 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.4094, allocations: 5.312 kB / 479.2 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.4095, allocations: 51.66 kB / 479.3 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.4095, allocations: 13.53 kB / 479.3 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.853e-05/0.4097, allocations: 13.45 kB / 479.3 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.4097, allocations: 12 kB / 479.3 MB, free: 8.824 MB / 346.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 () * 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 5.585e-05/0.4097, allocations: 117.9 kB / 479.4 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.4099, allocations: 74.7 kB / 479.5 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.23e-05/0.4099, allocations: 18.47 kB / 479.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.4099, allocations: 0 / 479.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4099, allocations: 4 kB / 479.5 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.41, allocations: 5.312 kB / 479.5 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.4101, allocations: 175.1 kB / 479.7 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4102, allocations: 0 / 479.7 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.4103, allocations: 37.78 kB / 479.8 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4103, allocations: 12.03 kB / 479.8 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.4104, allocations: 3.984 kB / 479.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4104, allocations: 0 / 479.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.4104, allocations: 8.391 kB / 479.8 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002448/0.4106, allocations: 352.5 kB / 480.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.894e-05/0.4107, allocations: 94.39 kB / 480.2 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.4107, allocations: 4 kB / 480.2 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.4108, allocations: 6.391 kB / 480.2 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.4109, allocations: 14.17 kB / 480.2 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.4109, allocations: 4 kB / 480.2 MB, free: 7.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.889e-05/0.411, allocations: 99.92 kB / 480.3 MB, free: 7.859 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.411, allocations: 0 / 480.3 MB, free: 7.859 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002927/0.4113, allocations: 20 kB / 480.4 MB, free: 7.84 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 (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 9.587e-05/0.4114, allocations: 104.4 kB / 480.5 MB, free: 7.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.4115, allocations: 85.47 kB / 480.5 MB, free: 7.668 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4115, allocations: 4 kB / 480.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.679e-05/0.4116, allocations: 10.5 kB / 480.6 MB, free: 7.656 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.4119, allocations: 46.02 kB / 480.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.4123, allocations: 287.8 kB / 480.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.4125, allocations: 0.7186 MB / 481.6 MB, free: 6.633 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.639e-05/0.4125, allocations: 9.062 kB / 481.6 MB, free: 6.629 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.4126, allocations: 19.19 kB / 481.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4126, allocations: 0 / 481.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of Templates: time 0.002968/0.4155, allocations: 0.9808 MB / 482.6 MB, free: 6.066 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches