Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009643/0.0009644, allocations: 98.06 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002141, allocations: 4 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1936, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08658/0.2802, allocations: 79.68 MB / 489.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.2805, allocations: 75.95 kB / 489.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007491/0.288, allocations: 2.822 MB / 492 MB, free: 8.031 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.288, allocations: 0 / 492 MB, free: 8.031 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.2881, allocations: 4 kB / 492 MB, free: 8.027 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005869/0.2887, allocations: 442.9 kB / 492.4 MB, free: 7.547 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2887, allocations: 11.97 kB / 492.4 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.2888, allocations: 19.81 kB / 492.5 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.289, allocations: 203.4 kB / 492.7 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.289, allocations: 15.94 kB / 492.7 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.289, allocations: 15.95 kB / 492.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.2895, allocations: 255.6 kB / 492.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.2896, allocations: 7.938 kB / 492.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.2896, allocations: 8 kB / 493 MB, free: 6.957 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2896, allocations: 0 / 493 MB, free: 6.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/0.2899, allocations: 95.86 kB / 493 MB, free: 6.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006518/0.2905, allocations: 0.6038 MB / 493.7 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.2909, allocations: 147.7 kB / 493.8 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.2909, allocations: 12.25 kB / 493.8 MB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2909, allocations: 42.5 kB / 493.9 MB, free: 5.953 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2909, allocations: 4 kB / 493.9 MB, free: 5.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004988/0.2914, allocations: 197.2 kB / 494 MB, free: 5.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.2915, allocations: 114.9 kB / 494.2 MB, free: 5.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.2917, allocations: 145.3 kB / 494.3 MB, free: 5.465 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2917, allocations: 29.7 kB / 494.3 MB, free: 5.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.741e-05/0.2917, allocations: 112.4 kB / 494.4 MB, free: 5.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.2918, allocations: 23.73 kB / 494.5 MB, free: 5.293 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.2918, allocations: 4 kB / 494.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.2919, allocations: 322.8 kB / 494.8 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.292, allocations: 44.34 kB / 494.8 MB, free: 4.918 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.2922, allocations: 141.6 kB / 495 MB, free: 4.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.2923, allocations: 67.91 kB / 495 MB, free: 4.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2923, allocations: 0 / 495 MB, free: 4.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003698/0.2927, allocations: 201.5 kB / 495.2 MB, free: 4.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2927, allocations: 12.06 kB / 495.2 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2927, allocations: 7.938 kB / 495.2 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.2928, allocations: 8 kB / 495.3 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.2929, allocations: 51.86 kB / 495.3 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2929, allocations: 4 kB / 495.3 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.2931, allocations: 27.83 kB / 495.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.2931, allocations: 8 kB / 495.3 MB, free: 4.348 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 0.0001074/0.2932, allocations: 144.4 kB / 495.5 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.2933, allocations: 93.47 kB / 495.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.938e-05/0.2934, allocations: 16.72 kB / 495.6 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2934, allocations: 0 / 495.6 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2934, allocations: 3.953 kB / 495.6 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2934, allocations: 7.984 kB / 495.6 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002558/0.2937, allocations: 213.5 kB / 495.8 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2937, allocations: 0 / 495.8 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.2939, allocations: 43.91 kB / 495.9 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.2939, allocations: 4 kB / 495.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2939, allocations: 4 kB / 495.9 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2939, allocations: 4 kB / 495.9 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.294, allocations: 0 / 495.9 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.2945, allocations: 425 kB / 496.3 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/0.2946, allocations: 108.9 kB / 496.4 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2946, allocations: 19.95 kB / 496.4 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.2947, allocations: 7.984 kB / 496.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.988e-05/0.2948, allocations: 4 kB / 496.4 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2948, allocations: 8 kB / 496.4 MB, free: 3.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.688e-05/0.2949, allocations: 115.2 kB / 496.5 MB, free: 3.043 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2949, allocations: 0 / 496.5 MB, free: 3.043 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.2952, allocations: 35.94 kB / 496.6 MB, free: 3.008 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 0.000127/0.2954, allocations: 103.2 kB / 496.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.2957, allocations: 124.6 kB / 496.8 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2957, allocations: 8.062 kB / 496.8 MB, free: 2.766 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.701e-05/0.2958, allocations: 35.91 kB / 496.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.2961, allocations: 56 kB / 496.9 MB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007169/0.2969, allocations: 0.5057 MB / 497.4 MB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.2971, allocations: 0.7283 MB / 498.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.816e-05/0.2972, allocations: 17.73 kB / 498.1 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.2972, allocations: 15.44 kB / 498.2 MB, free: 1.344 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2972, allocations: 0 / 498.2 MB, free: 1.344 MB / 362.7 MB Notification: Performance of Templates: time 0.003283/0.3005, allocations: 1.143 MB / 499.3 MB, free: 252 kB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches