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.001231/0.001231, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001103/0.001103, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009903/0.0009904, allocations: 50.86 kB / 299.9 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09403, allocations: 49.44 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003168/0.09725, allocations: 2.264 MB / 351.6 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008521/0.09812, allocations: 0.5849 MB / 352.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.09823, allocations: 4 kB / 352.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.09835, allocations: 19.78 kB / 352.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.09857, allocations: 59.56 kB / 352.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.09879, allocations: 61.69 kB / 352.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.09905, allocations: 267 kB / 352.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.0992, allocations: 64.95 kB / 352.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.09933, allocations: 107.4 kB / 352.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.0995, allocations: 139.2 kB / 352.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.09954, allocations: 12 kB / 352.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.469e-05/0.09958, allocations: 16 kB / 353 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.09965, allocations: 59.69 kB / 353 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.09976, allocations: 123.1 kB / 353.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.09999, allocations: 247.3 kB / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1, allocations: 0 / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1, allocations: 0 / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1, allocations: 0 / 353.4 MB, free: 0.8164 MB / 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.001009/0.101, allocations: 0.6113 MB / 354 MB, free: 160 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.1011, allocations: 12.03 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.1011, allocations: 36.56 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.1015, allocations: 312.3 kB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1015, allocations: 16.41 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.1016, allocations: 19.91 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.1021, allocations: 369.9 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1022, allocations: 3.938 kB / 354.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.1022, allocations: 4 kB / 354.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1022, allocations: 7.938 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.1024, allocations: 87.89 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/0.1031, allocations: 0.5326 MB / 355.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006599/0.1038, allocations: 323.7 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.104, allocations: 134.6 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.104, allocations: 11.97 kB / 355.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.104, allocations: 42.5 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.443e-06/0.104, allocations: 0 / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00222/0.1063, allocations: 1.327 MB / 357.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.1064, allocations: 126.7 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.1067, allocations: 332.6 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1067, allocations: 29.7 kB / 357.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/0.1068, allocations: 145.1 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.1069, allocations: 47.53 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.107, allocations: 66.14 kB / 357.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1071, allocations: 354.8 kB / 358.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1072, allocations: 68.84 kB / 358.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.1075, allocations: 318.7 kB / 358.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003991/0.1079, allocations: 416.9 kB / 359.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1079, allocations: 7.938 kB / 359.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005746/0.1085, allocations: 409.6 kB / 359.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1085, allocations: 8 kB / 359.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1085, allocations: 8.094 kB / 359.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1086, allocations: 19.98 kB / 359.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.1088, allocations: 95.83 kB / 359.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.1088, allocations: 15.94 kB / 359.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.1091, allocations: 28.5 kB / 359.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.1091, allocations: 27.98 kB / 359.7 MB, free: 9.926 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.0001505/0.1093, allocations: 169.6 kB / 359.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004624/0.1097, allocations: 297.1 kB / 360.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005832/0.1103, allocations: 379.2 kB / 360.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1103, allocations: 4 kB / 360.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1103, allocations: 3.938 kB / 360.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1104, allocations: 0 / 360.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.1107, allocations: 341.2 kB / 360.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1108, allocations: 0 / 360.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.1113, allocations: 123.8 kB / 361 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1113, allocations: 4 kB / 361 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.1114, allocations: 15.94 kB / 361 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1114, allocations: 0 / 361 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1114, allocations: 4 kB / 361 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000895/0.1123, allocations: 0.7145 MB / 361.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.1124, allocations: 116.8 kB / 361.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.1124, allocations: 16 kB / 361.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.1127, allocations: 12 kB / 361.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.1127, allocations: 7.984 kB / 361.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.1128, allocations: 8 kB / 361.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.113, allocations: 247.1 kB / 362.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.113, allocations: 0 / 362.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000412/0.1134, allocations: 64 kB / 362.2 MB, free: 7.328 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 0.0001096/0.1135, allocations: 111.2 kB / 362.3 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004652/0.114, allocations: 285.7 kB / 362.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.114, allocations: 8.188 kB / 362.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.1141, allocations: 31.92 kB / 362.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006883/0.1148, allocations: 220 kB / 362.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.1161, allocations: 0.8555 MB / 363.7 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.1164, allocations: 0.8073 MB / 364.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.918e-05/0.1166, allocations: 35.28 kB / 364.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.544e-05/0.1167, allocations: 31.42 kB / 364.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1167, allocations: 0 / 364.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of Templates: time 0.007144/0.1238, allocations: 3.294 MB / 367.8 MB, free: 1.602 MB / 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/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