Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008743/0.0008742, allocations: 104.1 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003138, allocations: 8 kB / 307.1 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1476, allocations: 51.54 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003625/0.1513, allocations: 1.837 MB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1529, allocations: 0.5853 MB / 361.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.1532, allocations: 4 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.1533, allocations: 19.78 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003692/0.1537, allocations: 59.61 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.1541, allocations: 55.88 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.1545, allocations: 243.1 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1548, allocations: 68.48 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002845/0.1551, allocations: 99.44 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.1554, allocations: 131.3 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.1554, allocations: 12 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.265e-05/0.1555, allocations: 8 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.279e-05/0.1556, allocations: 47.7 kB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.074e-05/0.1557, allocations: 61.58 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.156, allocations: 183.8 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.156, allocations: 7.938 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.156, allocations: 0 / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.156, allocations: 0 / 362 MB, free: 10.23 MB / 302.1 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.001458/0.1575, allocations: 0.5763 MB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1576, allocations: 12.03 kB / 362.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.1577, allocations: 35.53 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.1583, allocations: 295.3 kB / 362.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.1583, allocations: 12.28 kB / 363 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.1584, allocations: 19.94 kB / 363 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.1594, allocations: 369.7 kB / 363.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1594, allocations: 0 / 363.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.1595, allocations: 4 kB / 363.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1595, allocations: 4 kB / 363.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.1599, allocations: 91.95 kB / 363.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1609, allocations: 0.548 MB / 364 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.162, allocations: 319.3 kB / 364.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003775/0.1624, allocations: 138.5 kB / 364.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.1625, allocations: 4 kB / 364.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.1626, allocations: 34.56 kB / 364.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.245e-06/0.1626, allocations: 0 / 364.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003702/0.1663, allocations: 1.322 MB / 365.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.1664, allocations: 142.8 kB / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000607/0.1671, allocations: 328.6 kB / 366.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.1671, allocations: 29.7 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.1673, allocations: 145.1 kB / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.369e-05/0.1674, allocations: 47.53 kB / 366.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.1674, allocations: 11.94 kB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1676, allocations: 346.8 kB / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.1679, allocations: 76.83 kB / 366.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.1683, allocations: 314.8 kB / 367.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.1687, allocations: 131.8 kB / 367.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.1687, allocations: 4 kB / 367.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001091/0.1699, allocations: 409.2 kB / 367.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.1699, allocations: 12.17 kB / 367.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.1699, allocations: 16 kB / 367.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.17, allocations: 15.95 kB / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.1705, allocations: 95.84 kB / 367.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.321e-05/0.1705, allocations: 19.92 kB / 367.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/0.1709, allocations: 27.84 kB / 367.9 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.171, allocations: 24 kB / 367.9 MB, free: 3.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * 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.0002482/0.1712, allocations: 161.6 kB / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008206/0.1721, allocations: 297.3 kB / 368.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.1732, allocations: 375.4 kB / 368.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.1732, allocations: 7.953 kB / 368.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1732, allocations: 4 kB / 368.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.1732, allocations: 3.984 kB / 368.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000643/0.1739, allocations: 317.3 kB / 369.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1739, allocations: 4 kB / 369.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009595/0.1749, allocations: 127.8 kB / 369.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/0.1749, allocations: 4 kB / 369.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.175, allocations: 15.98 kB / 369.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.175, allocations: 0 / 369.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.175, allocations: 3.953 kB / 369.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.1767, allocations: 0.7146 MB / 369.9 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.1768, allocations: 116.7 kB / 370.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.1769, allocations: 12 kB / 370.1 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/0.1774, allocations: 11.98 kB / 370.1 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.1774, allocations: 7.953 kB / 370.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.171e-05/0.1775, allocations: 15.98 kB / 370.1 MB, free: 1.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000445/0.1779, allocations: 247.1 kB / 370.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1779, allocations: 0 / 370.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008469/0.1788, allocations: 60 kB / 370.4 MB, free: 1.266 MB / 302.1 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 (45): * Single equations (assignments): 45 * 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.000168/0.179, allocations: 115.1 kB / 370.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008903/0.1799, allocations: 292.4 kB / 370.8 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1799, allocations: 0 / 370.8 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.18, allocations: 33.36 kB / 370.8 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.1813, allocations: 212.8 kB / 371 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1928/0.3741, allocations: 0.8533 MB / 371.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3745, allocations: 0.8087 MB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.3747, allocations: 36.09 kB / 372.7 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3748, allocations: 32.66 kB / 372.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3748, allocations: 3.469 kB / 372.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Templates: time 0.007632/0.3825, allocations: 3.092 MB / 375.9 MB, free: 18.42 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches