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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001761/0.001761, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00216/0.00216, allocations: 216.5 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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=5501,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=5501,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 67.91 kB / 378.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2801, allocations: 53.41 MB / 431.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003546/0.2836, allocations: 2.125 MB / 433.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2849, allocations: 0.5849 MB / 434.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.285, allocations: 4 kB / 434.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.2851, allocations: 27.61 kB / 434.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.2854, allocations: 75.42 kB / 434.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.2856, allocations: 71.84 kB / 434.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.2859, allocations: 283 kB / 434.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.2861, allocations: 44.94 kB / 434.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.2863, allocations: 131.3 kB / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.2865, allocations: 127.3 kB / 435.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.641e-05/0.2866, allocations: 31.98 kB / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.125e-05/0.2866, allocations: 23.94 kB / 435.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.2867, allocations: 63.7 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.2868, allocations: 99.33 kB / 435.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.2871, allocations: 264.9 kB / 435.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2871, allocations: 4 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2871, allocations: 0 / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2871, allocations: 0 / 435.6 MB, free: 2.555 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.001151/0.2883, allocations: 0.5514 MB / 436.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.2883, allocations: 11.98 kB / 436.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.809e-05/0.2884, allocations: 40.7 kB / 436.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.2888, allocations: 254.8 kB / 436.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2888, allocations: 12.41 kB / 436.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.2888, allocations: 19.94 kB / 436.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.2895, allocations: 382.1 kB / 436.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2895, allocations: 4 kB / 436.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.2896, allocations: 4 kB / 436.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.2896, allocations: 8 kB / 436.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.2898, allocations: 83.95 kB / 436.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006686/0.2904, allocations: 445.2 kB / 437.4 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006866/0.2911, allocations: 314.6 kB / 437.7 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.2914, allocations: 130.2 kB / 437.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.2914, allocations: 4 kB / 437.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.2914, allocations: 38.56 kB / 437.8 MB, free: 144 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.2914, allocations: 0 / 437.8 MB, free: 144 kB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.002279/0.2937, allocations: 1.145 MB / 439 MB, free: 14.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.2938, allocations: 142.7 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003806/0.2942, allocations: 324.6 kB / 439.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.2942, allocations: 37.7 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.2944, allocations: 149.1 kB / 439.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.2944, allocations: 47.66 kB / 439.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.2945, allocations: 66.14 kB / 439.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.2947, allocations: 347.5 kB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.2948, allocations: 72.86 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.2951, allocations: 300 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005101/0.2956, allocations: 399.2 kB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.2956, allocations: 3.984 kB / 440.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00064/0.2963, allocations: 397.6 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2963, allocations: 15.94 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.2963, allocations: 8 kB / 441.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.2963, allocations: 12.03 kB / 441.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.2966, allocations: 91.83 kB / 441.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.361e-05/0.2966, allocations: 15.94 kB / 441.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.2968, allocations: 23.95 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.2969, allocations: 20 kB / 441.4 MB, free: 12.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (49): * Single equations (assignments): 49 * 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.0001693/0.297, allocations: 168.6 kB / 441.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/0.2975, allocations: 297.7 kB / 441.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006435/0.2981, allocations: 372.5 kB / 442.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2982, allocations: 4 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.2982, allocations: 7.984 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2982, allocations: 0 / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.2985, allocations: 201.1 kB / 442.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.2985, allocations: 4 kB / 442.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005359/0.299, allocations: 115.9 kB / 442.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.904e-06/0.299, allocations: 8.125 kB / 442.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.299, allocations: 11.98 kB / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2991, allocations: 0 / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2991, allocations: 4.062 kB / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3001, allocations: 0.7029 MB / 443.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.3001, allocations: 39.78 kB / 443.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.76e-05/0.3002, allocations: 19.92 kB / 443.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.3004, allocations: 8 kB / 443.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.3005, allocations: 11.92 kB / 443.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.3005, allocations: 12 kB / 443.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002633/0.3007, allocations: 243.1 kB / 443.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3007, allocations: 0 / 443.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004198/0.3012, allocations: 64.06 kB / 443.7 MB, free: 9.895 MB / 350.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 (43): * Single equations (assignments): 43 * 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.0001186/0.3013, allocations: 107.2 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.3018, allocations: 285.3 kB / 444 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3018, allocations: 0 / 444 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.699e-05/0.3019, allocations: 23.94 kB / 444.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.3026, allocations: 192.5 kB / 444.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3038, allocations: 0.7135 MB / 445 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/0.304, allocations: 201.6 kB / 445.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.847e-05/0.3041, allocations: 39.2 kB / 445.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.946e-05/0.3042, allocations: 35.42 kB / 445.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3042, allocations: 0 / 445.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of Templates: time 0.008421/0.3126, allocations: 4.074 MB / 449.3 MB, free: 4.207 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.635947277769446]