Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001542/0.001542, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 60 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09858/0.09972, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003481/0.1032, allocations: 2.208 MB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1043, allocations: 0.616 MB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.1044, allocations: 4 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.1046, allocations: 27.61 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.1048, allocations: 67.42 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1051, allocations: 79.84 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.1054, allocations: 279 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1056, allocations: 80.56 kB / 362.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.1058, allocations: 119.4 kB / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.106, allocations: 143.2 kB / 362.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.1061, allocations: 24 kB / 362.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.383e-05/0.1061, allocations: 20 kB / 362.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.67e-05/0.1062, allocations: 63.69 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1063, allocations: 135.1 kB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.1066, allocations: 262.8 kB / 363 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1066, allocations: 4 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1066, allocations: 0 / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1066, allocations: 0 / 363 MB, free: 9.219 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.001018/0.1076, allocations: 0.6191 MB / 363.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1077, allocations: 8.031 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.1077, allocations: 36.47 kB / 363.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.1082, allocations: 308.5 kB / 364 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1082, allocations: 12.41 kB / 364 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.1082, allocations: 19.91 kB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006441/0.1089, allocations: 371.5 kB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1089, allocations: 0 / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1089, allocations: 12 kB / 364.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1089, allocations: 4 kB / 364.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.1091, allocations: 95.89 kB / 364.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006676/0.1098, allocations: 0.5363 MB / 365 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.1105, allocations: 303.8 kB / 365.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.1107, allocations: 145.6 kB / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.1107, allocations: 15.92 kB / 365.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.1107, allocations: 34.56 kB / 365.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.735e-06/0.1108, allocations: 0 / 365.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002217/0.113, allocations: 1.33 MB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.1131, allocations: 138.7 kB / 367 MB, free: 4.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.1134, allocations: 332.7 kB / 367.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.1135, allocations: 33.7 kB / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.1136, allocations: 137.1 kB / 367.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.766e-05/0.1136, allocations: 51.53 kB / 367.5 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.728e-05/0.1137, allocations: 66.12 kB / 367.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1139, allocations: 346.8 kB / 367.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.114, allocations: 72.83 kB / 368 MB, free: 3.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002865/0.1143, allocations: 314.8 kB / 368.3 MB, free: 3.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.1148, allocations: 416.9 kB / 368.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1148, allocations: 7.938 kB / 368.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005864/0.1154, allocations: 416.8 kB / 369.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1154, allocations: 12 kB / 369.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1154, allocations: 8.656 kB / 369.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.1154, allocations: 12 kB / 369.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.1157, allocations: 96.48 kB / 369.2 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.1157, allocations: 15.94 kB / 369.3 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.1159, allocations: 31.83 kB / 369.3 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.116, allocations: 24 kB / 369.3 MB, free: 2.309 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.0001501/0.1161, allocations: 169.5 kB / 369.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004354/0.1166, allocations: 293 kB / 369.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005923/0.1172, allocations: 367.5 kB / 370.1 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1172, allocations: 4 kB / 370.1 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1172, allocations: 8 kB / 370.1 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1172, allocations: 7.922 kB / 370.1 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.1176, allocations: 329.2 kB / 370.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1176, allocations: 4 kB / 370.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.1181, allocations: 123.8 kB / 370.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1181, allocations: 4 kB / 370.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.1182, allocations: 4 kB / 370.6 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.1182, allocations: 4.062 kB / 370.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1182, allocations: 4 kB / 370.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009506/0.1191, allocations: 0.7187 MB / 371.3 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.48e-05/0.1192, allocations: 108.7 kB / 371.4 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.584e-05/0.1193, allocations: 12 kB / 371.4 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.1196, allocations: 15.98 kB / 371.5 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.1196, allocations: 8.062 kB / 371.5 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.1196, allocations: 8 kB / 371.5 MB, free: 40 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1597/0.2793, allocations: 249.9 kB / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2794, allocations: 0 / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007343/0.2801, allocations: 63.41 kB / 371.8 MB, free: 20.07 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.000153/0.2803, allocations: 104.9 kB / 371.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006155/0.2809, allocations: 306 kB / 372.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2809, allocations: 1.562 kB / 372.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.485e-05/0.281, allocations: 26.52 kB / 372.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007239/0.2817, allocations: 211.2 kB / 372.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.283, allocations: 0.7339 MB / 373.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.2833, allocations: 0.8043 MB / 374 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.601e-05/0.2834, allocations: 36.3 kB / 374 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-05/0.2835, allocations: 30.64 kB / 374 MB, free: 18.97 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2835, allocations: 0 / 374 MB, free: 18.97 MB / 302.1 MB Notification: Performance of Templates: time 0.007996/0.2915, allocations: 3.549 MB / 377.6 MB, free: 18.78 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches