Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009085/0.0009087, allocations: 177.9 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 225.7 MB / 243.2 MB, free: 8.473 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008048/0.0008049, allocations: 85.19 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002626, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2131, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002349/0.2155, allocations: 1.84 MB / 406.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008767/0.2165, allocations: 0.5573 MB / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.2166, allocations: 7.938 kB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.2167, allocations: 20.8 kB / 407 MB, free: 28.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.2169, allocations: 60.16 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.2172, allocations: 61.67 kB / 407.1 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.2174, allocations: 263 kB / 407.4 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.2175, allocations: 65.28 kB / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2177, allocations: 99.39 kB / 407.5 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.2178, allocations: 131.2 kB / 407.7 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.2178, allocations: 8.906 kB / 407.7 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.606e-05/0.2179, allocations: 12 kB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.622e-05/0.2179, allocations: 51.64 kB / 407.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.631e-05/0.218, allocations: 142.2 kB / 407.9 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.2182, allocations: 240.5 kB / 408.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2182, allocations: 0 / 408.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2182, allocations: 2.75 kB / 408.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2182, allocations: 0 / 408.1 MB, free: 27.79 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.0008327/0.2191, allocations: 0.5638 MB / 408.7 MB, free: 27.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2191, allocations: 16.03 kB / 408.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.2192, allocations: 36.55 kB / 408.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.2195, allocations: 316.3 kB / 409 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.2195, allocations: 16.41 kB / 409 MB, free: 26.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.2196, allocations: 15.91 kB / 409.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.2201, allocations: 357.2 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2201, allocations: 0 / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2201, allocations: 4 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.2201, allocations: 4 kB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.2203, allocations: 95.89 kB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.2208, allocations: 0.5327 MB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.2214, allocations: 312.6 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.2216, allocations: 147.8 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.2216, allocations: 4 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.2216, allocations: 38.5 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.272e-06/0.2216, allocations: 0.6562 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.00176/0.2234, allocations: 1.334 MB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.2235, allocations: 142.8 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.2237, allocations: 328.6 kB / 412.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2238, allocations: 29.7 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.2238, allocations: 145.1 kB / 412.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.2239, allocations: 47.53 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.2239, allocations: 12 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.398e-05/0.2239, allocations: 346.8 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.2241, allocations: 72.72 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.2242, allocations: 318.7 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.2245, allocations: 425 kB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2246, allocations: 7.938 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004507/0.225, allocations: 409.3 kB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.225, allocations: 8.188 kB / 414.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.225, allocations: 12 kB / 414.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2251, allocations: 12 kB / 414.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.2253, allocations: 95.83 kB / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.2253, allocations: 15.94 kB / 414.2 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.2255, allocations: 31.83 kB / 414.3 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.2256, allocations: 20 kB / 414.3 MB, free: 21 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.2257, allocations: 169.6 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003534/0.226, allocations: 301.1 kB / 414.8 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005059/0.2266, allocations: 375.5 kB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2266, allocations: 4 kB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2266, allocations: 0 / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2266, allocations: 192 / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.2269, allocations: 329.2 kB / 415.4 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2269, allocations: 0 / 415.4 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005151/0.2274, allocations: 135.8 kB / 415.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2274, allocations: 0 / 415.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.2274, allocations: 8 kB / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2274, allocations: 4 kB / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2274, allocations: 0 / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007213/0.2282, allocations: 0.7224 MB / 416.3 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.2282, allocations: 116.6 kB / 416.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.2283, allocations: 8 kB / 416.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.2285, allocations: 16 kB / 416.4 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.2286, allocations: 11.92 kB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.2286, allocations: 12 kB / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001756/0.2288, allocations: 239.1 kB / 416.7 MB, free: 18.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2288, allocations: 4 kB / 416.7 MB, free: 18.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003628/0.2291, allocations: 64 kB / 416.8 MB, free: 18.41 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001021/0.2293, allocations: 115.2 kB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.2297, allocations: 292.8 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2297, allocations: 3.938 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.945e-05/0.2298, allocations: 37.36 kB / 417.2 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006379/0.2304, allocations: 217.7 kB / 417.4 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.2315, allocations: 0.9029 MB / 418.3 MB, free: 16.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.2317, allocations: 0.8034 MB / 419.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.926e-05/0.2318, allocations: 39.27 kB / 419.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.258e-05/0.2318, allocations: 27.44 kB / 419.2 MB, free: 15.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2319, allocations: 0 / 419.2 MB, free: 15.92 MB / 298.7 MB Notification: Performance of Templates: time 0.005956/0.2378, allocations: 3.249 MB / 422.4 MB, free: 12.67 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/jenkins/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