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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 107.9 kB / 17.74 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 179.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3071, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003266/0.3104, allocations: 2.216 MB / 403.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.3114, allocations: 0.5926 MB / 404.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.3116, allocations: 0 / 404.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.3117, allocations: 31.61 kB / 404.2 MB, free: 6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.312, allocations: 75.41 kB / 404.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.3122, allocations: 75.83 kB / 404.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.3126, allocations: 275 kB / 404.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.3127, allocations: 68.94 kB / 404.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.3129, allocations: 115.4 kB / 404.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.3131, allocations: 143.2 kB / 405 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/0.3132, allocations: 24 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.927e-05/0.3132, allocations: 28 kB / 405 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.308e-05/0.3133, allocations: 59.7 kB / 405.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3134, allocations: 135 kB / 405.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.3137, allocations: 252.1 kB / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3137, allocations: 3.938 kB / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3137, allocations: 0 / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.3137, allocations: 0 / 405.5 MB, free: 4.766 MB / 318.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.001037/0.3147, allocations: 0.6113 MB / 406.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.3148, allocations: 8.031 kB / 406.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.753e-05/0.3149, allocations: 32.56 kB / 406.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.3152, allocations: 332.2 kB / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.3153, allocations: 12.41 kB / 406.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.3153, allocations: 20 kB / 406.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006224/0.3159, allocations: 362.7 kB / 406.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.316, allocations: 0 / 406.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.316, allocations: 4 kB / 406.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.316, allocations: 4 kB / 406.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.3162, allocations: 87.89 kB / 406.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006816/0.3169, allocations: 0.5248 MB / 407.4 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006774/0.3176, allocations: 323.4 kB / 407.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.3178, allocations: 142.7 kB / 407.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.3179, allocations: 3.859 kB / 407.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.3179, allocations: 42.56 kB / 407.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.3179, allocations: 0 / 407.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002268/0.3202, allocations: 1.337 MB / 409.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.3203, allocations: 135.4 kB / 409.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000344/0.3206, allocations: 328.6 kB / 409.7 MB, free: 168 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.3207, allocations: 33.7 kB / 409.8 MB, free: 128 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3208, allocations: 145.1 kB / 409.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.3209, allocations: 55.41 kB / 410 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-05/0.3209, allocations: 74.08 kB / 410 MB, free: 15.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3211, allocations: 350.8 kB / 410.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.3212, allocations: 68.83 kB / 410.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.3216, allocations: 319.4 kB / 410.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.322, allocations: 416.9 kB / 411.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.322, allocations: 11.94 kB / 411.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006246/0.3227, allocations: 405.3 kB / 411.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3227, allocations: 11.94 kB / 411.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.3227, allocations: 12.12 kB / 411.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.3227, allocations: 12 kB / 411.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.323, allocations: 91.84 kB / 411.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-05/0.323, allocations: 19.92 kB / 411.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.3233, allocations: 20 kB / 411.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.3233, allocations: 24 kB / 411.8 MB, free: 13.86 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.3235, allocations: 165.8 kB / 411.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004651/0.3239, allocations: 297.3 kB / 412.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006411/0.3246, allocations: 383.5 kB / 412.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3246, allocations: 4 kB / 412.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3246, allocations: 0 / 412.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3246, allocations: 3.984 kB / 412.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.325, allocations: 329.2 kB / 412.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.325, allocations: 0 / 412.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/0.3256, allocations: 127.8 kB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.3256, allocations: 4 kB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.3257, allocations: 19.98 kB / 413.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3257, allocations: 0 / 413.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3257, allocations: 4 kB / 413.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009516/0.3266, allocations: 0.7068 MB / 413.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.081e-05/0.3267, allocations: 116.7 kB / 413.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.3268, allocations: 19.98 kB / 413.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.3271, allocations: 8 kB / 413.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.3271, allocations: 7.938 kB / 413.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.3271, allocations: 15.98 kB / 413.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.3274, allocations: 243.1 kB / 414.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3274, allocations: 0 / 414.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004328/0.3278, allocations: 60 kB / 414.2 MB, free: 11.27 MB / 334.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 (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.0001375/0.328, allocations: 125.4 kB / 414.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.3285, allocations: 301.6 kB / 414.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3285, allocations: 4.188 kB / 414.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.666e-05/0.3286, allocations: 23.94 kB / 414.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007386/0.3293, allocations: 224.7 kB / 414.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3307, allocations: 0.7661 MB / 415.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.3311, allocations: 0.8034 MB / 416.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3312, allocations: 35.42 kB / 416.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3312, allocations: 0 / 416.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of Templates: time 0.006774/0.338, allocations: 3.965 MB / 420.5 MB, free: 4.973 MB / 334.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches