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.0008113/0.0008113, allocations: 178.7 kB / 17.04 MB, free: 5.109 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.187/1.187, allocations: 223.3 MB / 241 MB, free: 10.09 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.0007342/0.0007342, allocations: 93.19 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003384, allocations: 8 kB / 351.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1996, allocations: 50.41 MB / 402.2 MB, free: 32.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.001683/0.2013, allocations: 1.836 MB / 404 MB, free: 30.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000678/0.202, allocations: 0.5685 MB / 404.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.2021, allocations: 0.6875 kB / 404.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.718e-05/0.2022, allocations: 16.55 kB / 404.6 MB, free: 30.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.2024, allocations: 57.91 kB / 404.7 MB, free: 30.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.2026, allocations: 64.48 kB / 404.7 MB, free: 29.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.2028, allocations: 243.1 kB / 405 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.2029, allocations: 55.56 kB / 405 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.203, allocations: 99.42 kB / 405.1 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.2031, allocations: 129.2 kB / 405.3 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.2032, allocations: 12 kB / 405.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.688e-05/0.2032, allocations: 8 kB / 405.3 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.057e-05/0.2033, allocations: 51.7 kB / 405.3 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.2033, allocations: 61.14 kB / 405.4 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.2034, allocations: 189 kB / 405.6 MB, free: 29.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2034, allocations: 0 / 405.6 MB, free: 29.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2034, allocations: 0 / 405.6 MB, free: 29.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.2034, allocations: 0 / 405.6 MB, free: 29.14 MB / 298.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.0008146/0.2043, allocations: 0.5785 MB / 406.1 MB, free: 28.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2043, allocations: 8.031 kB / 406.2 MB, free: 28.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.2044, allocations: 35.58 kB / 406.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.2046, allocations: 295.3 kB / 406.5 MB, free: 28.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.2046, allocations: 16.28 kB / 406.5 MB, free: 28.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.2047, allocations: 19.84 kB / 406.5 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.2052, allocations: 359.7 kB / 406.9 MB, free: 27.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2052, allocations: 3.938 kB / 406.9 MB, free: 27.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.2052, allocations: 7.953 kB / 406.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.2052, allocations: 4 kB / 406.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.2054, allocations: 95.95 kB / 407 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.2059, allocations: 0.5326 MB / 407.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005494/0.2065, allocations: 320.3 kB / 407.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.2067, allocations: 148.1 kB / 408 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.2067, allocations: 4 kB / 408 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.344e-05/0.2067, allocations: 42.55 kB / 408 MB, free: 26.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.2067, allocations: 0 / 408 MB, free: 26.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001784/0.2085, allocations: 1.318 MB / 409.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.2086, allocations: 138.6 kB / 409.5 MB, free: 24.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.2088, allocations: 332.5 kB / 409.8 MB, free: 24.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2089, allocations: 29.7 kB / 409.8 MB, free: 24.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.2089, allocations: 145.1 kB / 410 MB, free: 24.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.209, allocations: 47.53 kB / 410 MB, free: 24.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.209, allocations: 8 kB / 410 MB, free: 24.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.719e-05/0.209, allocations: 346.8 kB / 410.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.2092, allocations: 76.86 kB / 410.4 MB, free: 23.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2094, allocations: 314.8 kB / 410.7 MB, free: 23.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.2095, allocations: 127.8 kB / 410.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2095, allocations: 4 kB / 410.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00046/0.21, allocations: 409.4 kB / 411.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.21, allocations: 14.84 kB / 411.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.21, allocations: 11.94 kB / 411.3 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2101, allocations: 16 kB / 411.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.2103, allocations: 96.5 kB / 411.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.2103, allocations: 19.92 kB / 411.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.2105, allocations: 20 kB / 411.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.2105, allocations: 27.95 kB / 411.5 MB, free: 22.77 MB / 298.7 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.0001148/0.2107, allocations: 170.6 kB / 411.6 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003523/0.211, allocations: 297.2 kB / 411.9 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004921/0.2115, allocations: 375.5 kB / 412.3 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2115, allocations: 8 kB / 412.3 MB, free: 21.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2116, allocations: 3.984 kB / 412.3 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2116, allocations: 0 / 412.3 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.2118, allocations: 325.3 kB / 412.6 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2118, allocations: 0 / 412.6 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005283/0.2124, allocations: 127.8 kB / 412.7 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2124, allocations: 4 kB / 412.7 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.2124, allocations: 15.98 kB / 412.8 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2124, allocations: 0 / 412.8 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2124, allocations: 4 kB / 412.8 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007352/0.2132, allocations: 0.7185 MB / 413.5 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.2132, allocations: 112.7 kB / 413.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.705e-05/0.2133, allocations: 15.98 kB / 413.6 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.2135, allocations: 12 kB / 413.6 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.2136, allocations: 0 / 413.6 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.2136, allocations: 19.98 kB / 413.6 MB, free: 20.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.2138, allocations: 243.1 kB / 413.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2138, allocations: 0 / 413.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000367/0.2141, allocations: 64 kB / 413.9 MB, free: 20.19 MB / 298.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 (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 8.993e-05/0.2142, allocations: 107.7 kB / 414 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.2146, allocations: 300.2 kB / 414.3 MB, free: 19.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2147, allocations: 0 / 414.3 MB, free: 19.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.711e-05/0.2147, allocations: 25.5 kB / 414.4 MB, free: 19.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.2153, allocations: 224.2 kB / 414.6 MB, free: 19.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.2164, allocations: 0.9081 MB / 415.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.2166, allocations: 0.8034 MB / 416.3 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.254e-05/0.2167, allocations: 35.42 kB / 416.3 MB, free: 17.72 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2167, allocations: 0 / 416.3 MB, free: 17.72 MB / 298.7 MB Notification: Performance of Templates: time 0.004335/0.221, allocations: 3.888 MB / 420.2 MB, free: 13.84 MB / 298.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