Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.5 MB / 245.4 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007788/0.0007789, allocations: 96.73 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002219/0.0002219, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2189, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09803/0.317, allocations: 79.62 MB / 488.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.3173, allocations: 79.89 kB / 488.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00776/0.325, allocations: 2.815 MB / 491.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3251, allocations: 0 / 491.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.3251, allocations: 4 kB / 491.2 MB, free: 9.082 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.0005616/0.3257, allocations: 441.5 kB / 491.6 MB, free: 8.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3257, allocations: 12.03 kB / 491.6 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.3258, allocations: 20.75 kB / 491.6 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.326, allocations: 220.6 kB / 491.9 MB, free: 8.316 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.326, allocations: 8.375 kB / 491.9 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.3261, allocations: 12.38 kB / 491.9 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005364/0.3266, allocations: 263 kB / 492.1 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3266, allocations: 192 / 492.1 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.3267, allocations: 7.938 kB / 492.1 MB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.3267, allocations: 4 kB / 492.1 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.3269, allocations: 99.88 kB / 492.2 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.3276, allocations: 0.5921 MB / 492.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/0.328, allocations: 159.8 kB / 493 MB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.3282, allocations: 82.64 kB / 493.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.3283, allocations: 0 / 493.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.3283, allocations: 34.56 kB / 493.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.3283, allocations: 4 kB / 493.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005427/0.3288, allocations: 201.6 kB / 493.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/0.3289, allocations: 122.9 kB / 493.4 MB, free: 6.574 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.3291, allocations: 154.2 kB / 493.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.3291, allocations: 25.7 kB / 493.6 MB, free: 6.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.3292, allocations: 112.4 kB / 493.7 MB, free: 6.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.3293, allocations: 27.64 kB / 493.7 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-06/0.3293, allocations: 8 kB / 493.8 MB, free: 6.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3294, allocations: 318.8 kB / 494.1 MB, free: 5.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.3295, allocations: 47.97 kB / 494.1 MB, free: 5.867 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.3297, allocations: 144.7 kB / 494.3 MB, free: 5.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.33, allocations: 201.5 kB / 494.4 MB, free: 5.434 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.33, allocations: 0 / 494.4 MB, free: 5.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003789/0.3304, allocations: 209.5 kB / 494.7 MB, free: 5.223 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3305, allocations: 8.062 kB / 494.7 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3305, allocations: 11.92 kB / 494.7 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.3305, allocations: 8 kB / 494.7 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.3307, allocations: 48.16 kB / 494.7 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3307, allocations: 4 kB / 494.7 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.3308, allocations: 23.83 kB / 494.8 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3308, allocations: 12 kB / 494.8 MB, free: 5.109 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.0001245/0.3309, allocations: 138.6 kB / 494.9 MB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.3311, allocations: 93.45 kB / 495 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.89e-05/0.3312, allocations: 16.72 kB / 495 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3312, allocations: 4 kB / 495 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3312, allocations: 0 / 495 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3312, allocations: 3.984 kB / 495 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.3315, allocations: 213.5 kB / 495.2 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3315, allocations: 4 kB / 495.2 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.3317, allocations: 47.84 kB / 495.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3317, allocations: 0 / 495.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.3317, allocations: 8 kB / 495.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3318, allocations: 0 / 495.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3318, allocations: 4 kB / 495.3 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005459/0.3323, allocations: 398.5 kB / 495.7 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/0.3324, allocations: 105 kB / 495.8 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.3324, allocations: 96 / 495.8 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.3326, allocations: 23.98 kB / 495.8 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.3326, allocations: 4 kB / 495.8 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.3326, allocations: 4 kB / 495.8 MB, free: 3.961 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.385e-05/0.3327, allocations: 124 kB / 495.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3327, allocations: 0 / 495.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003242/0.3331, allocations: 35.84 kB / 496 MB, free: 3.805 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.0001261/0.3332, allocations: 99.25 kB / 496.1 MB, free: 3.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.3335, allocations: 131.8 kB / 496.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3335, allocations: 0.9375 kB / 496.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.3337, allocations: 43.91 kB / 496.2 MB, free: 3.527 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.3342, allocations: 67.92 kB / 496.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007764/0.3349, allocations: 0.5297 MB / 496.8 MB, free: 2.891 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.3352, allocations: 0.7243 MB / 497.6 MB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.3353, allocations: 15.44 kB / 497.6 MB, free: 2.125 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3353, allocations: 0 / 497.6 MB, free: 2.125 MB / 362.7 MB Notification: Performance of Templates: time 0.002982/0.3383, allocations: 1.587 MB / 499.2 MB, free: 0.5469 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches