Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.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.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007985/0.0007986, allocations: 96.8 kB / 297.4 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002049/0.0002049, allocations: 8 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.191, allocations: 51.28 MB / 408.6 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09691/0.288, allocations: 79.76 MB / 488.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.2883, allocations: 76.75 kB / 488.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01101/0.2993, allocations: 3.747 MB / 492.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2994, allocations: 0 / 492.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.2994, allocations: 8 kB / 492.2 MB, free: 8.035 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008912/0.3003, allocations: 0.5919 MB / 492.8 MB, free: 7.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3004, allocations: 8.031 kB / 492.8 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.566e-05/0.3004, allocations: 32.56 kB / 492.9 MB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.3008, allocations: 316.3 kB / 493.2 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.3009, allocations: 13.41 kB / 493.2 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.3009, allocations: 15.91 kB / 493.2 MB, free: 6.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006118/0.3015, allocations: 369.9 kB / 493.6 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3016, allocations: 0 / 493.6 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.3016, allocations: 8 kB / 493.6 MB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3016, allocations: 3.938 kB / 493.6 MB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.3018, allocations: 91.95 kB / 493.7 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00066/0.3025, allocations: 0.5403 MB / 494.2 MB, free: 5.906 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.3031, allocations: 304.3 kB / 494.5 MB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.3033, allocations: 149 kB / 494.6 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3034, allocations: 7.938 kB / 494.7 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.3034, allocations: 42.56 kB / 494.7 MB, free: 5.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.302e-06/0.3034, allocations: 0 / 494.7 MB, free: 5.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002188/0.3056, allocations: 1.287 MB / 496 MB, free: 3.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.397e-05/0.3057, allocations: 138.7 kB / 496.1 MB, free: 3.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.3061, allocations: 324.6 kB / 496.4 MB, free: 3.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.3061, allocations: 29.7 kB / 496.5 MB, free: 3.477 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.3062, allocations: 149.2 kB / 496.6 MB, free: 3.328 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.3063, allocations: 47.53 kB / 496.7 MB, free: 3.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.3063, allocations: 11.94 kB / 496.7 MB, free: 3.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3064, allocations: 346.8 kB / 497 MB, free: 2.922 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.3066, allocations: 64.84 kB / 497.1 MB, free: 2.855 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002518/0.3068, allocations: 312 kB / 497.4 MB, free: 2.438 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.3072, allocations: 400.1 kB / 497.8 MB, free: 1.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3072, allocations: 4 kB / 497.8 MB, free: 1.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005727/0.3078, allocations: 397.1 kB / 498.2 MB, free: 1.535 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3078, allocations: 8 kB / 498.2 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3079, allocations: 15.94 kB / 498.2 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.3079, allocations: 8 kB / 498.2 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.3081, allocations: 95.83 kB / 498.3 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3082, allocations: 15.94 kB / 498.3 MB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.3084, allocations: 31.83 kB / 498.3 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.3084, allocations: 20.28 kB / 498.3 MB, free: 1.344 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.000161/0.3086, allocations: 165.7 kB / 498.5 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.309, allocations: 277.1 kB / 498.8 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006166/0.3097, allocations: 380.3 kB / 499.2 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3097, allocations: 4 kB / 499.2 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3097, allocations: 4 kB / 499.2 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3097, allocations: 0 / 499.2 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.3101, allocations: 321.4 kB / 499.5 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3101, allocations: 0 / 499.5 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.3106, allocations: 123.8 kB / 499.6 MB, free: 24 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3106, allocations: 4 kB / 499.6 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3107, allocations: 11.94 kB / 499.6 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.3107, allocations: 7.984 kB / 499.6 MB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3107, allocations: 0 / 499.6 MB, free: 0 / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009359/0.3116, allocations: 0.695 MB / 0.4886 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.16e-05/0.3117, allocations: 116.7 kB / 0.4887 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.3118, allocations: 11.94 kB / 0.4887 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.312, allocations: 15.98 kB / 0.4887 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.3121, allocations: 12 kB / 0.4887 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.3121, allocations: 12 kB / 0.4887 GB, free: 15.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000242/0.3124, allocations: 247 kB / 0.489 GB, free: 14.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3124, allocations: 0 / 0.489 GB, free: 14.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004277/0.3128, allocations: 60 kB / 0.489 GB, free: 14.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * 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.0001572/0.313, allocations: 114.4 kB / 0.4892 GB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000504/0.3135, allocations: 289.2 kB / 0.4894 GB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3135, allocations: 0 / 0.4894 GB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.117e-05/0.3136, allocations: 36.3 kB / 0.4895 GB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000767/0.3143, allocations: 209.2 kB / 0.4897 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.3156, allocations: 0.8588 MB / 0.4905 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.316, allocations: 0.8073 MB / 0.4913 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.324e-05/0.3161, allocations: 35.44 kB / 0.4913 GB, free: 12.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3161, allocations: 0 / 0.4913 GB, free: 12.39 MB / 378.7 MB Notification: Performance of Templates: time 0.005708/0.3218, allocations: 3.813 MB / 0.495 GB, free: 8.582 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches