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.001257/0.001257, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2802, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003472/0.2837, allocations: 2.214 MB / 412.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.285, allocations: 0.612 MB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.2851, allocations: 8 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.2853, allocations: 27.61 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.2856, allocations: 71.42 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.2859, allocations: 75.83 kB / 412.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.2862, allocations: 275 kB / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.2864, allocations: 68.72 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.2867, allocations: 123.4 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.2869, allocations: 151.2 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.2869, allocations: 20 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.122e-05/0.287, allocations: 28 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.2871, allocations: 63.69 kB / 413.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2872, allocations: 127.1 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.2875, allocations: 262.7 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2875, allocations: 0 / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2875, allocations: 0 / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.2875, allocations: 0 / 414 MB, free: 13.46 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.001165/0.2887, allocations: 0.6126 MB / 414.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2887, allocations: 8.031 kB / 414.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.42e-05/0.2888, allocations: 36.56 kB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.2892, allocations: 320.3 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.2892, allocations: 12.41 kB / 415 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.2893, allocations: 19.94 kB / 415 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006577/0.29, allocations: 369.9 kB / 415.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.29, allocations: 3.984 kB / 415.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.29, allocations: 4 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.29, allocations: 4 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.2902, allocations: 91.89 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007251/0.291, allocations: 0.5288 MB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/0.2917, allocations: 315.7 kB / 416.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.2919, allocations: 135.7 kB / 416.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.2919, allocations: 8 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.292, allocations: 35.22 kB / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 4.418e-06/0.292, allocations: 0 / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002398/0.2944, allocations: 1.344 MB / 417.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.2945, allocations: 130.8 kB / 418 MB, free: 9.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.2949, allocations: 332.6 kB / 418.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.295, allocations: 29.7 kB / 418.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.2951, allocations: 149 kB / 418.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/0.2951, allocations: 51.47 kB / 418.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.976e-05/0.2952, allocations: 70.14 kB / 418.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2954, allocations: 350.8 kB / 418.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.2955, allocations: 72.83 kB / 419 MB, free: 8.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.2958, allocations: 318.7 kB / 419.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004362/0.2962, allocations: 412.9 kB / 419.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2963, allocations: 3.938 kB / 419.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006072/0.2969, allocations: 413.2 kB / 420.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.2969, allocations: 12.22 kB / 420.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.2969, allocations: 8 kB / 420.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/0.2969, allocations: 12 kB / 420.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.2972, allocations: 91.84 kB / 420.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.2973, allocations: 19.92 kB / 420.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.2975, allocations: 16 kB / 420.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.2975, allocations: 24 kB / 420.3 MB, free: 6.578 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.0001848/0.2977, allocations: 173.6 kB / 420.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004668/0.2982, allocations: 300.7 kB / 420.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006658/0.2989, allocations: 371.5 kB / 421.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.2989, allocations: 7.984 kB / 421.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.2989, allocations: 0 / 421.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2989, allocations: 7.938 kB / 421.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/0.2993, allocations: 325.3 kB / 421.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2993, allocations: 0 / 421.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005728/0.2999, allocations: 131.8 kB / 421.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2999, allocations: 4 kB / 421.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.3, allocations: 11.98 kB / 421.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.3, allocations: 0 / 421.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3, allocations: 4 kB / 421.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00098/0.301, allocations: 0.707 MB / 422.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/0.3011, allocations: 120.7 kB / 422.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.017e-05/0.3011, allocations: 15.98 kB / 422.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.3014, allocations: 11.94 kB / 422.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.3014, allocations: 11.98 kB / 422.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.3015, allocations: 8.188 kB / 422.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002479/0.3017, allocations: 243.1 kB / 422.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3017, allocations: 0 / 422.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.3022, allocations: 64 kB / 422.8 MB, free: 3.984 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.0001455/0.3024, allocations: 118.5 kB / 422.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005542/0.3029, allocations: 298.1 kB / 423.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3029, allocations: 8.125 kB / 423.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.186e-05/0.303, allocations: 31.92 kB / 423.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007538/0.3038, allocations: 212.4 kB / 423.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.3051, allocations: 0.7735 MB / 424.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.3055, allocations: 0.8073 MB / 425 MB, free: 1.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.828e-05/0.3056, allocations: 35.44 kB / 425.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3056, allocations: 0 / 425.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of Templates: time 0.006393/0.312, allocations: 3.967 MB / 429 MB, free: 13.68 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/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