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.001495/0.001495, 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 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.002/0.002, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001651/0.001651, allocations: 51.92 kB / 378.2 MB, free: 2.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2975, allocations: 53.36 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004291/0.3018, allocations: 2.133 MB / 433.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.3033, allocations: 0.5849 MB / 434.3 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.3035, allocations: 4 kB / 434.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.3036, allocations: 27.61 kB / 434.3 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.304, allocations: 75.42 kB / 434.4 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.3043, allocations: 75.83 kB / 434.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003795/0.3046, allocations: 279 kB / 434.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.3048, allocations: 44.94 kB / 434.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.3051, allocations: 127.4 kB / 434.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.3054, allocations: 135.2 kB / 435 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.652e-05/0.3054, allocations: 24 kB / 435.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.714e-05/0.3055, allocations: 20 kB / 435.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.928e-05/0.3056, allocations: 71.62 kB / 435.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.3057, allocations: 99.33 kB / 435.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.3061, allocations: 271.9 kB / 435.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3061, allocations: 0 / 435.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3061, allocations: 0 / 435.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.3061, allocations: 0 / 435.5 MB, free: 2.746 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.001406/0.3075, allocations: 0.5466 MB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.3075, allocations: 12.02 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.3076, allocations: 40.7 kB / 436.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.3082, allocations: 258.7 kB / 436.4 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.3082, allocations: 12.41 kB / 436.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.3082, allocations: 16 kB / 436.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000837/0.3091, allocations: 389.8 kB / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.3091, allocations: 0 / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.3091, allocations: 8 kB / 436.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3091, allocations: 0 / 436.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.3094, allocations: 87.89 kB / 436.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008294/0.3102, allocations: 437.3 kB / 437.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007952/0.311, allocations: 307.6 kB / 437.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.3113, allocations: 129.9 kB / 437.7 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.3113, allocations: 4 kB / 437.7 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.3114, allocations: 42.5 kB / 437.8 MB, free: 352 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.3114, allocations: 0 / 437.8 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.00249/0.3138, allocations: 1.156 MB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/0.314, allocations: 138.8 kB / 439.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004454/0.3144, allocations: 328.6 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.3145, allocations: 33.7 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3146, allocations: 145.1 kB / 439.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.677e-05/0.3147, allocations: 51.61 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3148, allocations: 66.14 kB / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.315, allocations: 346.8 kB / 440 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.3151, allocations: 72.95 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.3155, allocations: 300.7 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005842/0.3161, allocations: 399.2 kB / 440.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3161, allocations: 0 / 440.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007278/0.3168, allocations: 401.6 kB / 441.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3168, allocations: 8 kB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.3169, allocations: 8 kB / 441.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.573e-05/0.3169, allocations: 20.06 kB / 441.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.3172, allocations: 92.42 kB / 441.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.3172, allocations: 12 kB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.3174, allocations: 23.95 kB / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.3175, allocations: 27.94 kB / 441.3 MB, free: 12.43 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.0002128/0.3177, allocations: 164.6 kB / 441.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005014/0.3182, allocations: 289.9 kB / 441.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006904/0.3189, allocations: 376.4 kB / 442.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3189, allocations: 4 kB / 442.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3189, allocations: 4 kB / 442.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3189, allocations: 3.984 kB / 442.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.3192, allocations: 205.1 kB / 442.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.3192, allocations: 4 kB / 442.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/0.3197, allocations: 115.9 kB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.3198, allocations: 7.938 kB / 442.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/0.3198, allocations: 11.98 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3198, allocations: 0 / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3198, allocations: 4.078 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.3209, allocations: 0.699 MB / 443.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.435e-05/0.3209, allocations: 39.78 kB / 443.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.891e-05/0.321, allocations: 15.94 kB / 443.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3212, allocations: 11.98 kB / 443.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.3213, allocations: 7.984 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3213, allocations: 12 kB / 443.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003141/0.3216, allocations: 243.1 kB / 443.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3216, allocations: 0 / 443.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004546/0.3221, allocations: 68.06 kB / 443.6 MB, free: 10.1 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.0001676/0.3222, allocations: 107.2 kB / 443.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005668/0.3228, allocations: 285.3 kB / 444 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3228, allocations: 0 / 444 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.974e-05/0.3229, allocations: 23.94 kB / 444 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007595/0.3236, allocations: 196.6 kB / 444.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.3251, allocations: 0.7173 MB / 444.9 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.3253, allocations: 201.6 kB / 445.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.3254, allocations: 27.28 kB / 445.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.668e-05/0.3255, allocations: 39.42 kB / 445.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3255, allocations: 0 / 445.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of Templates: time 0.009459/0.3349, allocations: 4.093 MB / 449.3 MB, free: 4.395 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/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_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: 4.842022053897381]