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.001177/0.001177, allocations: 113.1 kB / 17.06 MB, free: 6 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.001164/0.001164, allocations: 200 kB / 18 MB, free: 5.078 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.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 43.94 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3136, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003352/0.317, allocations: 2.215 MB / 402.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.3181, allocations: 0.6004 MB / 403.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.3183, allocations: 4 kB / 403.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.3184, allocations: 27.61 kB / 403.6 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.3187, allocations: 71.42 kB / 403.6 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.319, allocations: 79.77 kB / 403.7 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.3193, allocations: 275.1 kB / 404 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.3195, allocations: 64.94 kB / 404 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.3197, allocations: 119.4 kB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000199/0.3199, allocations: 147.2 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.32, allocations: 20 kB / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.966e-05/0.32, allocations: 24 kB / 404.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.875e-05/0.3201, allocations: 63.64 kB / 404.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.3202, allocations: 127.1 kB / 404.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.3206, allocations: 264 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3206, allocations: 0 / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3206, allocations: 4 kB / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3206, allocations: 0 / 404.8 MB, free: 4.754 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.001285/0.3219, allocations: 0.6075 MB / 405.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.322, allocations: 12.03 kB / 405.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.322, allocations: 40.56 kB / 405.5 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.3225, allocations: 312.3 kB / 405.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3225, allocations: 16.41 kB / 405.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.3226, allocations: 16 kB / 405.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.3232, allocations: 362.7 kB / 406.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.3232, allocations: 0 / 406.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.3233, allocations: 8 kB / 406.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3233, allocations: 0 / 406.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.3235, allocations: 91.89 kB / 406.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007/0.3242, allocations: 0.5326 MB / 406.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006627/0.3249, allocations: 319.4 kB / 407.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.3251, allocations: 144.4 kB / 407.2 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.3251, allocations: 11.86 kB / 407.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.3252, allocations: 38.5 kB / 407.3 MB, free: 2.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.653e-06/0.3252, allocations: 4 kB / 407.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002377/0.3276, allocations: 1.333 MB / 408.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.513e-05/0.3277, allocations: 135.4 kB / 408.7 MB, free: 492 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.328, allocations: 324.6 kB / 409.1 MB, free: 160 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.3281, allocations: 41.64 kB / 409.1 MB, free: 112 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.3282, allocations: 141.1 kB / 409.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.488e-05/0.3282, allocations: 59.5 kB / 409.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.3283, allocations: 66.14 kB / 409.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3284, allocations: 346.8 kB / 409.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.3286, allocations: 68.83 kB / 409.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003032/0.3289, allocations: 323.4 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/0.3294, allocations: 416.9 kB / 410.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3294, allocations: 3.938 kB / 410.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000615/0.33, allocations: 409.2 kB / 410.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.33, allocations: 8 kB / 410.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.3301, allocations: 15.98 kB / 410.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.108e-05/0.3301, allocations: 12 kB / 410.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3304, allocations: 91.84 kB / 411 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.036e-05/0.3304, allocations: 19.92 kB / 411 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.3306, allocations: 20 kB / 411.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3307, allocations: 24 kB / 411.1 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.0001786/0.3308, allocations: 173.4 kB / 411.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/0.3313, allocations: 297.2 kB / 411.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000639/0.3319, allocations: 379.5 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.332, allocations: 4 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.332, allocations: 4 kB / 411.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.332, allocations: 3.984 kB / 411.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003759/0.3324, allocations: 321.3 kB / 412.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3324, allocations: 64 / 412.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005463/0.3329, allocations: 135.8 kB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.333, allocations: 0 / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.333, allocations: 15.98 kB / 412.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.333, allocations: 4 kB / 412.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.333, allocations: 0 / 412.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009485/0.334, allocations: 0.7145 MB / 413.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3341, allocations: 116.7 kB / 413.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.3341, allocations: 12 kB / 413.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.3344, allocations: 15.92 kB / 413.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.921e-05/0.3344, allocations: 4 kB / 413.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.3344, allocations: 15.98 kB / 413.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002387/0.3347, allocations: 247 kB / 413.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3347, allocations: 64 / 413.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004138/0.3351, allocations: 68 kB / 413.6 MB, free: 11.25 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.0001294/0.3352, allocations: 115.2 kB / 413.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005035/0.3358, allocations: 297.2 kB / 414 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3358, allocations: 0 / 414 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.351e-05/0.3358, allocations: 23.94 kB / 414 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.0007242/0.3366, allocations: 217.4 kB / 414.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.3379, allocations: 0.7418 MB / 415 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.3383, allocations: 0.8073 MB / 415.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.654e-05/0.3384, 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 8.779e-05/0.3385, allocations: 27.44 kB / 415.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3385, allocations: 0 / 415.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of Templates: time 0.007571/0.3461, allocations: 3.636 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