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.001685/0.001684, allocations: 114.1 kB / 17.7 MB, free: 5.309 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.002104/0.002104, allocations: 191 kB / 18.63 MB, free: 4.379 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.419/1.419, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 50 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09388, allocations: 49.45 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003749/0.09768, allocations: 2.203 MB / 353.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.09877, allocations: 0.5965 MB / 354.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.09891, allocations: 0 / 354.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.09906, allocations: 31.61 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002679/0.09935, allocations: 67.42 kB / 354.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.09965, allocations: 79.77 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.09997, allocations: 271.1 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.1002, allocations: 72.92 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.1003, allocations: 111.4 kB / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.1005, allocations: 155.2 kB / 355.1 MB, free: 128 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.591e-05/0.1006, allocations: 20 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.567e-05/0.1006, allocations: 24 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.117e-05/0.1007, allocations: 63.64 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1008, allocations: 123.3 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.1011, allocations: 270.7 kB / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1011, allocations: 0 / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1011, allocations: 0 / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1011, allocations: 0 / 355.6 MB, free: 15.63 MB / 302.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.001107/0.1023, allocations: 0.6152 MB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1023, allocations: 12.03 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/0.1024, allocations: 32.56 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004033/0.1028, allocations: 316.3 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.1028, allocations: 12.41 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.1029, allocations: 27.84 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006542/0.1035, allocations: 363.9 kB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1036, allocations: 0 / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.1036, allocations: 7.984 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1036, allocations: 4 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.1038, allocations: 87.89 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007611/0.1046, allocations: 0.5248 MB / 357.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007264/0.1053, allocations: 324.2 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.1055, allocations: 138.8 kB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.1056, allocations: 7.938 kB / 358 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1056, allocations: 42.5 kB / 358.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.1056, allocations: 0 / 358.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002271/0.1079, allocations: 1.328 MB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.108, allocations: 135.3 kB / 359.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.1084, allocations: 324.6 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.1084, allocations: 29.7 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.804e-05/0.1085, allocations: 145.1 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.1086, allocations: 47.53 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.1087, allocations: 78.16 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1088, allocations: 346.8 kB / 360.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.1089, allocations: 68.83 kB / 360.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/0.1092, allocations: 314.8 kB / 360.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/0.1097, allocations: 424.9 kB / 361.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.1097, allocations: 7.938 kB / 361.3 MB, free: 9.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000584/0.1103, allocations: 409.4 kB / 361.7 MB, free: 8.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1103, allocations: 8 kB / 361.7 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.1103, allocations: 8 kB / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.1104, allocations: 16 kB / 361.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.1106, allocations: 95.83 kB / 361.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.1107, allocations: 15.94 kB / 361.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.1109, allocations: 32.02 kB / 361.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.1109, allocations: 20 kB / 361.8 MB, free: 8.75 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.0001708/0.1111, allocations: 173.9 kB / 362 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.1115, allocations: 296.5 kB / 362.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006334/0.1122, allocations: 383.4 kB / 362.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.1122, allocations: 4 kB / 362.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1122, allocations: 0 / 362.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1122, allocations: 3.984 kB / 362.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.1126, allocations: 329.2 kB / 363 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1126, allocations: 0 / 363 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005813/0.1132, allocations: 131.8 kB / 363.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.1132, allocations: 7.938 kB / 363.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.1133, allocations: 12 kB / 363.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1133, allocations: 0 / 363.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.1133, allocations: 4 kB / 363.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009454/0.1143, allocations: 0.7184 MB / 363.9 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.946e-05/0.1144, allocations: 108.8 kB / 364 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.1144, allocations: 12 kB / 364 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.1147, allocations: 15.98 kB / 364 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.1147, allocations: 4 kB / 364 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.1147, allocations: 12 kB / 364 MB, free: 6.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.115, allocations: 247 kB / 364.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.115, allocations: 0 / 364.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004444/0.1155, allocations: 60.06 kB / 364.3 MB, free: 6.156 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.0001281/0.1156, allocations: 118.8 kB / 364.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004988/0.1161, allocations: 297.8 kB / 364.7 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1161, allocations: 4 kB / 364.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.806e-05/0.1162, allocations: 27.92 kB / 364.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.1169, allocations: 216.5 kB / 365 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.1181, allocations: 0.7529 MB / 365.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.1185, allocations: 0.8112 MB / 366.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.682e-05/0.1186, allocations: 31.28 kB / 366.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.713e-05/0.1187, allocations: 35.42 kB / 366.6 MB, free: 3.812 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1187, allocations: 0 / 366.6 MB, free: 3.812 MB / 302.1 MB Notification: Performance of Templates: time 0.009592/0.1283, allocations: 3.533 MB / 370.1 MB, free: 292 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 -s cvode -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