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.001305/0.001305, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.00138/0.001381, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.429/1.429, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2815, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003522/0.2851, allocations: 2.22 MB / 403.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2863, allocations: 0.5926 MB / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2865, allocations: 0 / 404.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.2867, allocations: 31.59 kB / 404.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.287, allocations: 75.42 kB / 404.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.2873, allocations: 75.86 kB / 404.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.2876, allocations: 283 kB / 404.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2878, allocations: 56.97 kB / 404.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.288, allocations: 123.4 kB / 404.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.2882, allocations: 143.2 kB / 405 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.427e-05/0.2882, allocations: 20 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.912e-05/0.2883, allocations: 24 kB / 405 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.533e-05/0.2884, allocations: 67.67 kB / 405.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.2885, allocations: 127.1 kB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.2888, allocations: 258.7 kB / 405.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2888, allocations: 0 / 405.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2888, allocations: 0 / 405.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2889, allocations: 4 kB / 405.5 MB, free: 4.809 MB / 318.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.001236/0.2901, allocations: 0.6126 MB / 406.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2902, allocations: 12.02 kB / 406.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.994e-05/0.2903, allocations: 32.56 kB / 406.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.2907, allocations: 316.3 kB / 406.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.2907, allocations: 16.41 kB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.2908, allocations: 12 kB / 406.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006826/0.2915, allocations: 370.6 kB / 406.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2915, allocations: 0 / 406.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.2915, allocations: 4 kB / 406.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2915, allocations: 4 kB / 406.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.2918, allocations: 95.94 kB / 406.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/0.2925, allocations: 0.5287 MB / 407.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006682/0.2932, allocations: 312.4 kB / 407.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.2934, allocations: 147.9 kB / 407.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.2935, allocations: 11.84 kB / 407.9 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.2935, allocations: 34.56 kB / 408 MB, free: 2.125 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.2935, allocations: 0 / 408 MB, free: 2.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002472/0.296, allocations: 1.342 MB / 409.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.2961, allocations: 131.4 kB / 409.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.2965, allocations: 328.6 kB / 409.7 MB, free: 216 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.2966, allocations: 37.64 kB / 409.8 MB, free: 172 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2967, allocations: 153.1 kB / 409.9 MB, free: 16 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.2968, allocations: 47.47 kB / 410 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-05/0.2969, allocations: 74.12 kB / 410 MB, free: 15.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.297, allocations: 346.8 kB / 410.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.2972, allocations: 68.84 kB / 410.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.2975, allocations: 323.4 kB / 410.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.2979, allocations: 413 kB / 411.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.298, allocations: 3.938 kB / 411.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006524/0.2986, allocations: 417 kB / 411.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.2987, allocations: 8 kB / 411.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.2987, allocations: 8 kB / 411.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-05/0.2987, allocations: 12 kB / 411.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.299, allocations: 95.77 kB / 411.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.299, allocations: 12 kB / 411.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.2993, allocations: 20.41 kB / 411.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.2993, allocations: 35.92 kB / 411.8 MB, free: 13.9 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.0001944/0.2995, allocations: 169.9 kB / 411.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000477/0.3, allocations: 289.3 kB / 412.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000656/0.3007, allocations: 383.4 kB / 412.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3007, allocations: 4 kB / 412.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3007, allocations: 0 / 412.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3007, allocations: 4 kB / 412.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.3011, allocations: 337.3 kB / 412.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3011, allocations: 0 / 412.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005777/0.3017, allocations: 123.8 kB / 413.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3017, allocations: 0 / 413.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.3017, allocations: 12 kB / 413.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.3018, allocations: 7.938 kB / 413.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3018, allocations: 0 / 413.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009938/0.3028, allocations: 0.7145 MB / 413.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.3029, allocations: 120.8 kB / 413.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.3029, allocations: 12 kB / 413.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3032, allocations: 8 kB / 413.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.3033, allocations: 11.97 kB / 413.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.3033, allocations: 12 kB / 413.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.3036, allocations: 247.1 kB / 414.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3036, allocations: 0 / 414.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005265/0.3041, allocations: 64 kB / 414.3 MB, free: 11.31 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.0001853/0.3043, allocations: 119.1 kB / 414.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000626/0.305, allocations: 296.6 kB / 414.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.305, allocations: 0 / 414.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.729e-05/0.3051, allocations: 31.92 kB / 414.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009085/0.306, allocations: 214.7 kB / 414.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.3075, allocations: 0.7621 MB / 415.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.308, allocations: 0.8151 MB / 416.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.3081, allocations: 31.44 kB / 416.5 MB, free: 8.988 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3081, allocations: 0 / 416.5 MB, free: 8.988 MB / 334.1 MB Notification: Performance of Templates: time 0.008407/0.3165, allocations: 3.961 MB / 420.5 MB, free: 5.02 MB / 334.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 -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