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.001297/0.001297, allocations: 103.2 kB / 17.06 MB, free: 5.742 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.001387/0.001387, allocations: 194.9 kB / 18 MB, free: 4.91 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009949/0.0009949, allocations: 39.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3188, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004754/0.3236, allocations: 2.212 MB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.3251, allocations: 0.6003 MB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.3253, allocations: 0 / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.3255, allocations: 31.61 kB / 403.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.3259, allocations: 75.42 kB / 403.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.3263, allocations: 71.84 kB / 403.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004478/0.3268, allocations: 279 kB / 404 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.327, allocations: 68.94 kB / 404 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.3272, allocations: 119.4 kB / 404.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.3275, allocations: 139.2 kB / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.108e-05/0.3275, allocations: 24 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.755e-05/0.3276, allocations: 24 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.3277, allocations: 63.7 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3279, allocations: 135 kB / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.3283, allocations: 260 kB / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3283, allocations: 0 / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3283, allocations: 0 / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3283, allocations: 0 / 404.8 MB, free: 4.797 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.001532/0.3299, allocations: 0.6075 MB / 405.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.3299, allocations: 8.031 kB / 405.4 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.899e-05/0.3301, allocations: 36.56 kB / 405.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.3306, allocations: 328.2 kB / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.3306, allocations: 16.41 kB / 405.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.798e-05/0.3307, allocations: 23.94 kB / 405.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006292/0.3313, allocations: 362.7 kB / 406.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3313, allocations: 0 / 406.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.3314, allocations: 4 kB / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.3314, allocations: 4 kB / 406.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.3316, allocations: 87.89 kB / 406.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.3323, allocations: 0.5248 MB / 406.8 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/0.333, allocations: 315.8 kB / 407.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.3332, allocations: 147.4 kB / 407.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3332, allocations: 7.844 kB / 407.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.3333, allocations: 38.56 kB / 407.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.723e-06/0.3333, allocations: 4 kB / 407.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002263/0.3355, allocations: 1.335 MB / 408.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3357, allocations: 139.4 kB / 408.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.336, allocations: 328.6 kB / 409.1 MB, free: 196 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.336, allocations: 33.7 kB / 409.1 MB, free: 156 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.629e-05/0.3361, allocations: 149 kB / 409.2 MB, free: 4 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.797e-05/0.3362, allocations: 51.55 kB / 409.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.3363, allocations: 70.14 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3364, allocations: 346.8 kB / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3366, allocations: 72.83 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.3368, allocations: 319.4 kB / 410.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004145/0.3373, allocations: 413 kB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.3373, allocations: 7.938 kB / 410.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005888/0.3379, allocations: 405.4 kB / 410.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3379, allocations: 11.98 kB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3379, allocations: 8 kB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.338, allocations: 16.06 kB / 410.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.3382, allocations: 95.78 kB / 411 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/0.3382, allocations: 19.92 kB / 411 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.3385, allocations: 20 kB / 411.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.3385, allocations: 24 kB / 411.1 MB, free: 13.89 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.000188/0.3387, allocations: 165.8 kB / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004554/0.3392, allocations: 297.3 kB / 411.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006376/0.3398, allocations: 383.5 kB / 411.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3398, allocations: 4 kB / 411.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3398, allocations: 0 / 411.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3399, allocations: 3.984 kB / 411.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003758/0.3402, allocations: 333.1 kB / 412.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3403, allocations: 0 / 412.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005735/0.3408, allocations: 131.8 kB / 412.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.3408, allocations: 4 kB / 412.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.3409, allocations: 19.98 kB / 412.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3409, allocations: 0 / 412.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3409, allocations: 4 kB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/0.3419, allocations: 0.7068 MB / 413.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.342, allocations: 116.7 kB / 413.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.342, allocations: 16.06 kB / 413.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.3423, allocations: 11.98 kB / 413.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.3424, allocations: 4 kB / 413.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.3424, allocations: 19.92 kB / 413.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.3427, allocations: 243.1 kB / 413.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3427, allocations: 3.938 kB / 413.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004499/0.3431, allocations: 60 kB / 413.6 MB, free: 11.29 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.0001451/0.3433, allocations: 119.2 kB / 413.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005396/0.3438, allocations: 297.8 kB / 414 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3438, allocations: 0 / 414 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.579e-05/0.3439, allocations: 28 kB / 414 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007704/0.3447, allocations: 217.4 kB / 414.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.346, allocations: 0.7371 MB / 415 MB, free: 9.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3464, allocations: 0.8073 MB / 415.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.664e-05/0.3465, allocations: 35.27 kB / 415.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.66e-05/0.3466, allocations: 31.44 kB / 415.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3466, allocations: 0 / 415.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of Templates: time 0.007534/0.3541, allocations: 3.634 MB / 419.5 MB, free: 5.34 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