Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009948/0.0009951, allocations: 172.1 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.3 MB / 241.4 MB, free: 11.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008451/0.0008453, allocations: 105.5 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005195/0.0005197, allocations: 11.98 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2433, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08729/0.3307, allocations: 79.04 MB / 481.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3309, allocations: 80.47 kB / 481.9 MB, free: 1.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01041/0.3414, allocations: 3.696 MB / 485.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3414, allocations: 0 / 485.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.3414, allocations: 4 kB / 485.6 MB, free: 13.5 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.0008605/0.3423, allocations: 0.5803 MB / 486.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3423, allocations: 12.03 kB / 486.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.3424, allocations: 36.48 kB / 486.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.3428, allocations: 316.3 kB / 486.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.3428, allocations: 13.41 kB / 486.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.3429, allocations: 15.91 kB / 486.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.3435, allocations: 383.3 kB / 486.9 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3435, allocations: 3.938 kB / 486.9 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.3435, allocations: 4 kB / 486.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3435, allocations: 4 kB / 486.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.3437, allocations: 103.9 kB / 487 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006956/0.3444, allocations: 0.5288 MB / 487.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/0.3451, allocations: 312.3 kB / 487.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3453, allocations: 139.5 kB / 488 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.3453, allocations: 4 kB / 488 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3454, allocations: 42.55 kB / 488 MB, free: 10.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.3454, allocations: 0 / 488 MB, free: 10.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002085/0.3475, allocations: 1.286 MB / 489.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.3476, allocations: 138.7 kB / 489.4 MB, free: 9.297 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.3479, allocations: 324.6 kB / 489.8 MB, free: 8.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.3479, allocations: 29.7 kB / 489.8 MB, free: 8.934 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.298e-05/0.348, allocations: 145.1 kB / 489.9 MB, free: 8.789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.801e-05/0.348, allocations: 51.47 kB / 490 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.084e-05/0.3481, allocations: 8 kB / 490 MB, free: 8.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3482, allocations: 350.8 kB / 490.3 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3483, allocations: 68.86 kB / 490.4 MB, free: 8.312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.3486, allocations: 300.7 kB / 490.7 MB, free: 7.902 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.349, allocations: 400.2 kB / 491.1 MB, free: 7.398 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.349, allocations: 8 kB / 491.1 MB, free: 7.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005539/0.3496, allocations: 392.5 kB / 491.5 MB, free: 7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3496, allocations: 9 kB / 491.5 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3496, allocations: 11.94 kB / 491.5 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.3497, allocations: 19.94 kB / 491.5 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.3499, allocations: 91.83 kB / 491.6 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.3499, allocations: 11.94 kB / 491.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.3502, allocations: 27.91 kB / 491.6 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3502, allocations: 20 kB / 491.7 MB, free: 6.812 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.0001554/0.3503, allocations: 165.6 kB / 491.8 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004207/0.3508, allocations: 277.1 kB / 492.1 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005791/0.3514, allocations: 381.2 kB / 492.5 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.3514, allocations: 4 kB / 492.5 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3514, allocations: 0 / 492.5 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.3514, allocations: 7.984 kB / 492.5 MB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.3517, allocations: 317.5 kB / 492.8 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.3517, allocations: 4 kB / 492.8 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005183/0.3523, allocations: 123.8 kB / 492.9 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3523, allocations: 4 kB / 492.9 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3523, allocations: 15.88 kB / 492.9 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3523, allocations: 4 kB / 492.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3523, allocations: 0 / 492.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00085/0.3532, allocations: 0.7028 MB / 493.6 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.596e-05/0.3533, allocations: 108.8 kB / 493.8 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.924e-05/0.3533, allocations: 23.92 kB / 493.8 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.3536, allocations: 8 kB / 493.8 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.207e-05/0.3536, allocations: 7.984 kB / 493.8 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.3536, allocations: 12 kB / 493.8 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000228/0.3539, allocations: 239.1 kB / 494 MB, free: 4.332 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3539, allocations: 0 / 494 MB, free: 4.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003937/0.3543, allocations: 72 kB / 494.1 MB, free: 4.262 MB / 362.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.000129/0.3544, allocations: 122 kB / 494.2 MB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004487/0.3549, allocations: 292.9 kB / 494.5 MB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3549, allocations: 0 / 494.5 MB, free: 3.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.247e-05/0.355, allocations: 27.98 kB / 494.5 MB, free: 3.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.3556, allocations: 203.3 kB / 494.7 MB, free: 3.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.3568, allocations: 0.84 MB / 495.6 MB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.3571, allocations: 0.8073 MB / 496.4 MB, free: 1.914 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.408e-05/0.3572, allocations: 31.28 kB / 496.4 MB, free: 1.887 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.02e-05/0.3573, allocations: 35.42 kB / 496.4 MB, free: 1.852 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3573, allocations: 0 / 496.4 MB, free: 1.852 MB / 362.7 MB Notification: Performance of Templates: time 0.006285/0.3636, allocations: 3.07 MB / 499.5 MB, free: 14.79 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches