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.0009099/0.0009099, allocations: 94.72 kB / 17.31 MB, free: 6.535 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.0008128/0.0008129, allocations: 179.6 kB / 18.21 MB, free: 5.684 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.289/1.289, allocations: 223.3 MB / 242.3 MB, free: 248 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 7.938 kB / 302.1 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07386/0.0741, allocations: 50.42 MB / 352.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00201/0.07614, allocations: 1.897 MB / 354.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008128/0.07697, allocations: 0.581 MB / 355 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.298e-05/0.07707, allocations: 4 kB / 355 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.441e-05/0.07717, allocations: 15.8 kB / 355 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002293/0.0774, allocations: 63.55 kB / 355 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.07763, allocations: 67.17 kB / 355.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.07789, allocations: 263 kB / 355.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.07804, allocations: 60.95 kB / 355.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.07817, allocations: 103.4 kB / 355.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.07833, allocations: 127.2 kB / 355.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.07837, allocations: 8 kB / 355.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.885e-05/0.0784, allocations: 12 kB / 355.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.07847, allocations: 47.7 kB / 355.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.07857, allocations: 136.8 kB / 355.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.07875, allocations: 195.7 kB / 356 MB, free: 132 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.07876, allocations: 0 / 356 MB, free: 132 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.07876, allocations: 3.938 kB / 356 MB, free: 128 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.07877, allocations: 0 / 356 MB, free: 128 kB / 286.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.000923/0.0797, allocations: 0.5765 MB / 356.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.07974, allocations: 8.031 kB / 356.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.07e-05/0.0798, allocations: 36.47 kB / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.08013, allocations: 308.5 kB / 357 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.08016, allocations: 12.41 kB / 357 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.0802, allocations: 23.89 kB / 357 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.0808, allocations: 374.9 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.08082, allocations: 0 / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.08084, allocations: 4 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.08085, allocations: 4 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.08107, allocations: 99.88 kB / 357.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006158/0.08169, allocations: 0.5326 MB / 358 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/0.08237, allocations: 319.7 kB / 358.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.08259, allocations: 134.6 kB / 358.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.08263, allocations: 8.641 kB / 358.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.08266, allocations: 38.56 kB / 358.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.703e-06/0.08267, allocations: 0 / 358.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002201/0.08488, allocations: 1.336 MB / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.08498, allocations: 138.7 kB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.08532, allocations: 324.6 kB / 360.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.08535, allocations: 33.7 kB / 360.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.2e-05/0.08544, allocations: 145.1 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.708e-05/0.0855, allocations: 51.56 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.08555, allocations: 37.7 kB / 360.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.08566, allocations: 346.8 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.08581, allocations: 72.83 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.08608, allocations: 322.7 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.08651, allocations: 425 kB / 361.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.08653, allocations: 7.938 kB / 361.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000601/0.08714, allocations: 420.7 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.08716, allocations: 8 kB / 362.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.08718, allocations: 8 kB / 362.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.0872, allocations: 12 kB / 362.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.08747, allocations: 92.5 kB / 362.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.0875, allocations: 23.92 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.08773, allocations: 23.84 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.08777, allocations: 31.94 kB / 362.3 MB, free: 9.27 MB / 302.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.0001491/0.08792, allocations: 169.6 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004629/0.08839, allocations: 297.1 kB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006284/0.08903, allocations: 379.5 kB / 363.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.08905, allocations: 8 kB / 363.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.08906, allocations: 0 / 363.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.08907, allocations: 4 kB / 363.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003531/0.08943, allocations: 325.2 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.08944, allocations: 3.984 kB / 363.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005807/0.09003, allocations: 127.8 kB / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.09004, allocations: 4 kB / 363.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.09007, allocations: 7.984 kB / 363.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.09008, allocations: 4 kB / 363.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.09009, allocations: 4.188 kB / 363.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009427/0.09103, allocations: 0.7185 MB / 364.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.73e-05/0.09112, allocations: 112.7 kB / 364.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.09118, allocations: 23.98 kB / 364.5 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002674/0.09146, allocations: 12 kB / 364.5 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.004e-05/0.0915, allocations: 11.92 kB / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.09153, allocations: 12 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.09177, allocations: 243.1 kB / 364.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09177, allocations: 0 / 364.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004411/0.09222, allocations: 64 kB / 364.8 MB, free: 6.668 MB / 302.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 9.869e-05/0.09232, allocations: 107.2 kB / 364.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.09283, allocations: 301.8 kB / 365.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.09284, allocations: 4 kB / 365.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.118e-05/0.09292, allocations: 31.92 kB / 365.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007181/0.09364, allocations: 217.7 kB / 365.4 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.09491, allocations: 0.9282 MB / 366.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.09523, allocations: 0.8034 MB / 367.2 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.09533, allocations: 39.42 kB / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09534, allocations: 0 / 367.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of Templates: time 0.005441/0.1008, allocations: 3.884 MB / 371.1 MB, free: 300 kB / 302.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