Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.657/1.657, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 47.92 kB / 374.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1253, allocations: 53.33 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003969/0.1292, allocations: 2.24 MB / 429.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1306, allocations: 0.6199 MB / 430.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1308, allocations: 4 kB / 430.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.1309, allocations: 31.55 kB / 430.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.1313, allocations: 79.42 kB / 430.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.1315, allocations: 67.84 kB / 430.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.1319, allocations: 279 kB / 430.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.1321, allocations: 56.73 kB / 430.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002797/0.1324, allocations: 127.4 kB / 431 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.1326, allocations: 139.2 kB / 431.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.343e-05/0.1326, allocations: 24 kB / 431.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.702e-05/0.1327, allocations: 20 kB / 431.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/0.1328, allocations: 67.67 kB / 431.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.1329, allocations: 135.1 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.1333, allocations: 258.7 kB / 431.6 MB, free: 136 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1333, allocations: 4 kB / 431.6 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1333, allocations: 0 / 431.6 MB, free: 132 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1333, allocations: 0 / 431.6 MB, free: 132 kB / 350.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.2526/0.3859, allocations: 0.6196 MB / 432.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3859, allocations: 8.969 kB / 432.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.386, allocations: 37.92 kB / 432.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.3864, allocations: 318.1 kB / 432.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.3864, allocations: 14.75 kB / 432.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.3865, allocations: 15.27 kB / 432.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006837/0.3872, allocations: 361.8 kB / 433 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3872, allocations: 5.328 kB / 433 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.3872, allocations: 12.09 kB / 433 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3872, allocations: 4.062 kB / 433 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.3874, allocations: 91.44 kB / 433.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.388, allocations: 0.519 MB / 433.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.3887, allocations: 309.5 kB / 433.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.3889, allocations: 127.1 kB / 434 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.3889, allocations: 10.89 kB / 434 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.3889, allocations: 40.16 kB / 434.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.823e-06/0.3889, allocations: 0 / 434.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002227/0.3912, allocations: 1.329 MB / 435.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.393e-05/0.3913, allocations: 143.3 kB / 435.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3916, allocations: 329.5 kB / 435.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.3916, allocations: 38.08 kB / 435.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.3917, allocations: 145.6 kB / 436 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.3918, allocations: 49.73 kB / 436.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.814e-05/0.3918, allocations: 68.42 kB / 436.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.3919, allocations: 351.2 kB / 436.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.3921, allocations: 70.34 kB / 436.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.3923, allocations: 313.5 kB / 436.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.3927, allocations: 420.4 kB / 437.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3927, allocations: 2.844 kB / 437.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006117/0.3933, allocations: 410 kB / 437.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3933, allocations: 9.625 kB / 437.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.3933, allocations: 15.84 kB / 437.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/0.3933, allocations: 12.09 kB / 437.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.3936, allocations: 92.36 kB / 437.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.3936, allocations: 17.52 kB / 437.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.3939, allocations: 25.61 kB / 437.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.3939, allocations: 27.44 kB / 437.9 MB, free: 8.07 MB / 350.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.0001384/0.394, allocations: 168.7 kB / 438 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004644/0.3945, allocations: 297.2 kB / 438.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006431/0.3951, allocations: 378.4 kB / 438.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3952, allocations: 6.469 kB / 438.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3952, allocations: 1.219 kB / 438.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3952, allocations: 2.156 kB / 438.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.3955, allocations: 326.1 kB / 439 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3955, allocations: 1.25 kB / 439 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.3961, allocations: 119.4 kB / 439.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.3961, allocations: 8.266 kB / 439.2 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.3962, allocations: 15.73 kB / 439.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3962, allocations: 6.797 kB / 439.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3962, allocations: 1.031 kB / 439.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009835/0.3972, allocations: 0.7067 MB / 439.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.3972, allocations: 123.5 kB / 440 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.614e-05/0.3973, allocations: 17.67 kB / 440 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3975, allocations: 11.78 kB / 440 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.3976, allocations: 4.031 kB / 440 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.3976, allocations: 17.45 kB / 440.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.3979, allocations: 247.5 kB / 440.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3979, allocations: 3.938 kB / 440.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000464/0.3984, allocations: 63 kB / 440.4 MB, free: 6.625 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 (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.000117/0.3985, allocations: 119 kB / 440.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00056/0.399, allocations: 290.4 kB / 440.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.399, allocations: 4.062 kB / 440.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.338e-05/0.3991, allocations: 28.52 kB / 440.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007705/0.3999, allocations: 192.5 kB / 441 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.4012, allocations: 0.7769 MB / 441.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.4015, allocations: 0.8114 MB / 442.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.4016, allocations: 30.8 kB / 442.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4016, allocations: 0 / 442.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of Templates: time 0.008619/0.4103, allocations: 3.968 MB / 446.6 MB, free: 4.785 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.047469714976614]