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.001643/0.001643, allocations: 106.3 kB / 17.06 MB, free: 5.82 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.002083/0.002083, allocations: 195.9 kB / 18 MB, free: 4.965 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009133/0.0009133, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3241, allocations: 49.43 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003656/0.3278, allocations: 2.22 MB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.329, allocations: 0.5926 MB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.3292, allocations: 7.938 kB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.3293, allocations: 23.67 kB / 403.6 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.3296, allocations: 79.34 kB / 403.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.3299, allocations: 74.59 kB / 403.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.3302, allocations: 279 kB / 404 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.3304, allocations: 68.92 kB / 404 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.3305, allocations: 111.4 kB / 404.2 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.3307, allocations: 147.2 kB / 404.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.3308, allocations: 24 kB / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.3308, allocations: 28 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.725e-05/0.3309, allocations: 59.7 kB / 404.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.331, allocations: 131.1 kB / 404.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.3314, allocations: 262.5 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3314, allocations: 0 / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3314, allocations: 0 / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3314, allocations: 0 / 404.8 MB, free: 4.801 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.001173/0.3326, allocations: 0.6229 MB / 405.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3326, allocations: 8.031 kB / 405.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/0.3327, allocations: 36.75 kB / 405.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.3331, allocations: 328.5 kB / 405.8 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.3332, allocations: 12.41 kB / 405.8 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.3332, allocations: 20 kB / 405.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.3339, allocations: 362.7 kB / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3339, allocations: 0 / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.3339, allocations: 8 kB / 406.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3339, allocations: 4 kB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3341, allocations: 87.89 kB / 406.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007525/0.3349, allocations: 0.5288 MB / 406.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006857/0.3356, allocations: 311.8 kB / 407.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.3358, allocations: 141 kB / 407.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-05/0.3359, allocations: 11.8 kB / 407.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.3359, allocations: 42.55 kB / 407.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.3359, allocations: 0 / 407.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.00235/0.3383, allocations: 1.351 MB / 408.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.3384, allocations: 135.4 kB / 408.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.3388, allocations: 328.6 kB / 409.1 MB, free: 176 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.3388, allocations: 33.7 kB / 409.1 MB, free: 136 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.3389, allocations: 145.1 kB / 409.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.339, allocations: 47.72 kB / 409.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.606e-05/0.3391, allocations: 70.14 kB / 409.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3392, allocations: 358.7 kB / 409.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.3394, allocations: 68.83 kB / 409.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.3397, allocations: 319.4 kB / 410.1 MB, free: 15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005053/0.3402, allocations: 413 kB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3403, allocations: 7.938 kB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006146/0.3409, allocations: 405.5 kB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.3409, allocations: 8.188 kB / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3409, allocations: 15.98 kB / 410.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.667e-05/0.341, allocations: 12 kB / 411 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.3412, allocations: 91.84 kB / 411 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/0.3413, allocations: 19.92 kB / 411.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.3415, allocations: 20 kB / 411.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.3415, allocations: 24 kB / 411.1 MB, free: 13.88 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.0001771/0.3417, allocations: 173.8 kB / 411.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004544/0.3422, allocations: 301.5 kB / 411.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006211/0.3428, allocations: 379.5 kB / 411.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3428, allocations: 4 kB / 411.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3428, allocations: 0 / 411.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.3428, allocations: 3.984 kB / 411.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003835/0.3432, allocations: 329.2 kB / 412.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3432, allocations: 0 / 412.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000522/0.3438, allocations: 123.8 kB / 412.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.3438, allocations: 8 kB / 412.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.3438, allocations: 16.05 kB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3438, allocations: 4 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3438, allocations: 4 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009796/0.3448, allocations: 0.7108 MB / 413.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.721e-05/0.3449, allocations: 128.8 kB / 413.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.345, allocations: 12 kB / 413.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.3452, allocations: 11.98 kB / 413.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.3453, allocations: 4 kB / 413.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.3453, allocations: 15.98 kB / 413.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002541/0.3456, allocations: 243.1 kB / 413.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3456, allocations: 0 / 413.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004174/0.346, allocations: 64 kB / 413.6 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.0001239/0.3461, allocations: 115.2 kB / 413.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000509/0.3466, allocations: 301.8 kB / 414 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3467, allocations: 4.062 kB / 414 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.722e-05/0.3467, allocations: 23.98 kB / 414 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007013/0.3474, allocations: 223.8 kB / 414.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3487, allocations: 0.7443 MB / 415 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.3491, allocations: 0.8073 MB / 415.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.078e-05/0.3492, allocations: 39.27 kB / 415.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.615e-05/0.3493, allocations: 31.44 kB / 415.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.3493, allocations: 0 / 415.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of Templates: time 0.007379/0.3567, allocations: 3.634 MB / 419.5 MB, free: 5.305 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/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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches