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.001743/0.001743, allocations: 113.7 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.002126/0.002126, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2801, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004212/0.2843, allocations: 2.21 MB / 412.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.2858, allocations: 0.612 MB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.2861, allocations: 4 kB / 412.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.2863, allocations: 31.59 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003587/0.2867, allocations: 75.41 kB / 412.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.2871, allocations: 71.86 kB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.2875, allocations: 283 kB / 413.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2877, allocations: 72.72 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.288, allocations: 119.4 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.2882, allocations: 147.2 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.947e-05/0.2883, allocations: 24 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.6e-05/0.2883, allocations: 24 kB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.146e-05/0.2884, allocations: 63.64 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.2886, allocations: 131.1 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.2889, allocations: 258.7 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2889, allocations: 3.984 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2889, allocations: 0 / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.2889, allocations: 0 / 414 MB, free: 13.48 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.001369/0.2903, allocations: 0.6126 MB / 414.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.2903, allocations: 8.031 kB / 414.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.172e-05/0.2904, allocations: 32.56 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.2909, allocations: 324.3 kB / 415 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.291, allocations: 12.41 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.291, allocations: 16 kB / 415 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.2917, allocations: 369.9 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2917, allocations: 0 / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2917, allocations: 4 kB / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.2918, allocations: 7.984 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.292, allocations: 91.89 kB / 415.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.2928, allocations: 0.5171 MB / 416 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000715/0.2935, allocations: 323.6 kB / 416.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2938, allocations: 147.8 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.2938, allocations: 3.984 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.2938, allocations: 38.5 kB / 416.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.994e-06/0.2938, allocations: 0.6562 kB / 416.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002477/0.2963, allocations: 1.333 MB / 417.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.2965, allocations: 138.9 kB / 418 MB, free: 9.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.2968, allocations: 328.6 kB / 418.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.2969, allocations: 29.7 kB / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.297, allocations: 149 kB / 418.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.2971, allocations: 55.41 kB / 418.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/0.2972, allocations: 74.12 kB / 418.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2973, allocations: 346.8 kB / 418.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2975, allocations: 76.83 kB / 419 MB, free: 8.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003661/0.2978, allocations: 310.8 kB / 419.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/0.2983, allocations: 408.9 kB / 419.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.2983, allocations: 11.94 kB / 419.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006259/0.2989, allocations: 412.5 kB / 420.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.299, allocations: 8.938 kB / 420.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.299, allocations: 8 kB / 420.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.543e-05/0.299, allocations: 12 kB / 420.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.2993, allocations: 99.83 kB / 420.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.2993, allocations: 15.94 kB / 420.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.2996, allocations: 19.98 kB / 420.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.2996, allocations: 24 kB / 420.3 MB, free: 6.594 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.0001788/0.2998, allocations: 169.2 kB / 420.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.3003, allocations: 296.7 kB / 420.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006628/0.3009, allocations: 383.4 kB / 421.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.3009, allocations: 4 kB / 421.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.301, allocations: 0 / 421.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.301, allocations: 3.984 kB / 421.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.3014, allocations: 333.3 kB / 421.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3014, allocations: 0 / 421.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.302, allocations: 123.8 kB / 421.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.302, allocations: 4 kB / 421.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.302, allocations: 8 kB / 421.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.302, allocations: 4 kB / 421.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.302, allocations: 4 kB / 421.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3031, allocations: 0.7148 MB / 422.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3032, allocations: 116.7 kB / 422.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.373e-05/0.3032, allocations: 12 kB / 422.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.3035, allocations: 16.06 kB / 422.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.3035, allocations: 11.92 kB / 422.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.3036, allocations: 8 kB / 422.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.3038, allocations: 247.1 kB / 422.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3038, allocations: 0 / 422.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004586/0.3043, allocations: 63.98 kB / 422.8 MB, free: 4 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.0001589/0.3045, allocations: 107.2 kB / 422.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.305, allocations: 297.6 kB / 423.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.305, allocations: 0.6875 kB / 423.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.404e-05/0.3051, allocations: 35.92 kB / 423.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007319/0.3059, allocations: 220.3 kB / 423.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3073, allocations: 0.7736 MB / 424.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.3076, allocations: 0.8112 MB / 425 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.721e-05/0.3078, allocations: 31.44 kB / 425.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3078, allocations: 0 / 425.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of Templates: time 0.006529/0.3143, allocations: 4.002 MB / 429.1 MB, free: 13.66 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