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.001763/0.001763, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002053/0.002053, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 60.09 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2775, allocations: 50.54 MB / 409.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004385/0.2819, allocations: 2.214 MB / 411.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2834, allocations: 0.6121 MB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.2836, allocations: 4 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.2838, allocations: 35.53 kB / 412.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003797/0.2842, allocations: 79.42 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.2846, allocations: 71.78 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.285, allocations: 275.1 kB / 412.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.2852, allocations: 80.7 kB / 412.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002903/0.2855, allocations: 119.4 kB / 412.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.2857, allocations: 147.2 kB / 412.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.668e-05/0.2858, allocations: 20 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.2858, allocations: 27.94 kB / 412.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.2859, allocations: 59.7 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.2861, allocations: 127.1 kB / 413.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.2864, allocations: 266.7 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2864, allocations: 0 / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2864, allocations: 4 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.2864, allocations: 0 / 413.4 MB, free: 13.41 MB / 334.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.001149/0.2875, allocations: 0.6087 MB / 414 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.2876, allocations: 12.03 kB / 414 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.688e-05/0.2877, allocations: 32.56 kB / 414 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.2881, allocations: 316.3 kB / 414.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.2881, allocations: 20.41 kB / 414.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.42e-05/0.2882, allocations: 16 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006586/0.2889, allocations: 369.9 kB / 414.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2889, allocations: 0 / 414.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.2889, allocations: 8 kB / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2889, allocations: 0 / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.2891, allocations: 95.88 kB / 414.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007503/0.2899, allocations: 0.521 MB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.2906, allocations: 315.8 kB / 415.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.2908, allocations: 139.7 kB / 415.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.2909, allocations: 4 kB / 415.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.2909, allocations: 47.14 kB / 415.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.502e-06/0.2909, allocations: 0 / 415.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002316/0.2932, allocations: 1.333 MB / 417.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.2934, allocations: 138.9 kB / 417.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.2937, allocations: 320.6 kB / 417.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.2937, allocations: 33.7 kB / 417.6 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.383e-05/0.2938, allocations: 145 kB / 417.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/0.2939, allocations: 59.45 kB / 417.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.294, allocations: 74.12 kB / 417.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2941, allocations: 346.8 kB / 418.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.2943, allocations: 76.77 kB / 418.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.2946, allocations: 314.8 kB / 418.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/0.295, allocations: 412.9 kB / 419 MB, free: 7.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.295, allocations: 7.938 kB / 419 MB, free: 7.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006236/0.2956, allocations: 404.6 kB / 419.4 MB, free: 6.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.2957, allocations: 8 kB / 419.5 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.2957, allocations: 12.91 kB / 419.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.2957, allocations: 12 kB / 419.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.296, allocations: 99.83 kB / 419.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.296, allocations: 15.94 kB / 419.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.2963, allocations: 23.98 kB / 419.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.2963, allocations: 20 kB / 419.6 MB, free: 6.535 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.0001812/0.2965, allocations: 165.6 kB / 419.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004851/0.297, allocations: 296.6 kB / 420.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006301/0.2976, allocations: 387.5 kB / 420.5 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2976, allocations: 4 kB / 420.5 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2976, allocations: 4 kB / 420.5 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2977, allocations: 3.984 kB / 420.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.2981, allocations: 321.3 kB / 420.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2981, allocations: 0 / 420.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.2987, allocations: 127.8 kB / 420.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.2987, allocations: 0 / 420.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.2987, allocations: 12 kB / 420.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.2987, allocations: 8 kB / 420.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2987, allocations: 0 / 420.9 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/0.2997, allocations: 0.707 MB / 421.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.633e-05/0.2998, allocations: 120.6 kB / 421.8 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.781e-05/0.2999, allocations: 8 kB / 421.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.3001, allocations: 20 kB / 421.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.3002, allocations: 7.984 kB / 421.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.3002, allocations: 12 kB / 421.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.3005, allocations: 243.1 kB / 422 MB, free: 4.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3005, allocations: 0 / 422 MB, free: 4.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004505/0.3009, allocations: 64 kB / 422.1 MB, free: 3.949 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.0001217/0.3011, allocations: 107.2 kB / 422.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005127/0.3016, allocations: 305.7 kB / 422.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3016, allocations: 0 / 422.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.067e-05/0.3017, allocations: 28.48 kB / 422.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007074/0.3024, allocations: 220.4 kB / 422.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.3037, allocations: 0.7523 MB / 423.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.3041, allocations: 0.8112 MB / 424.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.3042, allocations: 31.28 kB / 424.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.179e-05/0.3043, allocations: 35.42 kB / 424.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3043, allocations: 0 / 424.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of Templates: time 0.007943/0.3122, allocations: 3.643 MB / 428 MB, free: 13.97 MB / 350.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 -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/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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches