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.001444/0.001444, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009859/0.0009858, allocations: 107.6 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002177/0.0002177, allocations: 8 kB / 357.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1832, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08793/0.2712, allocations: 79.48 MB / 488.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.2715, allocations: 68.84 kB / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00614/0.2776, allocations: 2.451 MB / 491.4 MB, free: 8.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2776, allocations: 4 kB / 491.4 MB, free: 8.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.2777, allocations: 4 kB / 491.4 MB, free: 8.641 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.0004517/0.2781, allocations: 418.8 kB / 491.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.2781, allocations: 8.031 kB / 491.8 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.173e-05/0.2782, allocations: 19.75 kB / 491.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.2784, allocations: 202.7 kB / 492 MB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.2784, allocations: 12 kB / 492.1 MB, free: 7.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.2784, allocations: 15.95 kB / 492.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.2789, allocations: 250.5 kB / 492.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2789, allocations: 3.938 kB / 492.3 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.2789, allocations: 4 kB / 492.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2789, allocations: 4 kB / 492.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.2792, allocations: 103.9 kB / 492.4 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005443/0.2797, allocations: 0.5882 MB / 493 MB, free: 6.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.28, allocations: 151.8 kB / 493.2 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2801, allocations: 4 kB / 493.2 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2801, allocations: 38.56 kB / 493.2 MB, free: 6.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.2801, allocations: 3.938 kB / 493.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004711/0.2806, allocations: 197.6 kB / 493.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.2806, allocations: 118.7 kB / 493.5 MB, free: 6.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.98e-05/0.2807, allocations: 118.7 kB / 493.6 MB, free: 6.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.2807, allocations: 25.7 kB / 493.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.905e-05/0.2808, allocations: 112 kB / 493.8 MB, free: 6.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.2808, allocations: 31.62 kB / 493.8 MB, free: 5.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.2808, allocations: 4 kB / 493.8 MB, free: 5.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/0.2809, allocations: 326.9 kB / 494.1 MB, free: 5.648 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.281, allocations: 40.34 kB / 494.2 MB, free: 5.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.2812, allocations: 141.6 kB / 494.3 MB, free: 5.422 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.2813, allocations: 61.23 kB / 494.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2813, allocations: 8 kB / 494.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003388/0.2817, allocations: 197.5 kB / 494.6 MB, free: 5.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2817, allocations: 11.98 kB / 494.6 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2817, allocations: 7.984 kB / 494.6 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.2817, allocations: 12.31 kB / 494.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.2819, allocations: 47.92 kB / 494.6 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.2819, allocations: 7.984 kB / 494.6 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.282, allocations: 28.12 kB / 494.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.282, allocations: 15.94 kB / 494.7 MB, free: 5.027 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 8.68e-05/0.2821, allocations: 125.8 kB / 494.8 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.2823, allocations: 89.52 kB / 494.9 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.871e-05/0.2823, allocations: 16.72 kB / 494.9 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2823, allocations: 0 / 494.9 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.2824, allocations: 7.953 kB / 494.9 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2824, allocations: 0 / 494.9 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.2826, allocations: 205.5 kB / 495.1 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2826, allocations: 4 kB / 495.1 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.2828, allocations: 39.97 kB / 495.2 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.2828, allocations: 0 / 495.2 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.2828, allocations: 4 kB / 495.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2828, allocations: 4 kB / 495.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2828, allocations: 3.938 kB / 495.2 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.2833, allocations: 422 kB / 495.6 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.74e-05/0.2834, allocations: 88.95 kB / 495.7 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.2834, allocations: 15.95 kB / 495.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2835, allocations: 7.984 kB / 495.7 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.2836, allocations: 4 kB / 495.7 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.2836, allocations: 8 kB / 495.7 MB, free: 3.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.187e-05/0.2837, allocations: 102.3 kB / 495.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2837, allocations: 0 / 495.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.284, allocations: 32 kB / 495.8 MB, free: 3.762 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 9.391e-05/0.2841, allocations: 107.2 kB / 496 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.2844, allocations: 132.6 kB / 496.1 MB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2844, allocations: 0 / 496.1 MB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.49e-05/0.2845, allocations: 31.97 kB / 496.1 MB, free: 3.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.2848, allocations: 52.33 kB / 496.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005657/0.2853, allocations: 477.8 kB / 496.6 MB, free: 2.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.2856, allocations: 0.7205 MB / 497.4 MB, free: 2.191 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.32e-05/0.2856, allocations: 17.02 kB / 497.4 MB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.2857, allocations: 15.44 kB / 497.4 MB, free: 2.16 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2857, allocations: 0 / 497.4 MB, free: 2.16 MB / 362.7 MB Notification: Performance of Templates: time 0.002836/0.2885, allocations: 1.027 MB / 498.4 MB, free: 1.156 MB / 362.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