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.001391/0.001391, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001538/0.001538, allocations: 208.3 kB / 20.75 MB, free: 2.293 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.528/1.528, allocations: 230.6 MB / 254.1 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.00159/0.00159, allocations: 59.92 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1106, allocations: 53.33 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00351/0.1141, allocations: 2.232 MB / 429 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.1152, allocations: 0.6238 MB / 429.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1154, allocations: 3.938 kB / 429.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.1155, allocations: 27.67 kB / 429.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.1158, allocations: 75.36 kB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.116, allocations: 75.84 kB / 429.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.1164, allocations: 279 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.1165, allocations: 52.73 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1168, allocations: 119.4 kB / 430.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.117, allocations: 151.2 kB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.117, allocations: 20 kB / 430.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.714e-05/0.1171, allocations: 24 kB / 430.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.387e-05/0.1171, allocations: 67.69 kB / 430.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1173, allocations: 127.1 kB / 430.7 MB, free: 396 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.1176, allocations: 262.7 kB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1176, allocations: 0 / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1176, allocations: 3.938 kB / 430.9 MB, free: 128 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1176, allocations: 0 / 430.9 MB, free: 128 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.2083/0.3259, allocations: 0.617 MB / 431.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.326, allocations: 9.219 kB / 431.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.3261, allocations: 37.97 kB / 431.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.3265, allocations: 314.7 kB / 431.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.3265, allocations: 14.03 kB / 431.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.3266, allocations: 18.36 kB / 431.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007883/0.3273, allocations: 366.6 kB / 432.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3274, allocations: 0 / 432.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.3274, allocations: 11.06 kB / 432.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3274, allocations: 4.156 kB / 432.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.3276, allocations: 90.56 kB / 432.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007137/0.3283, allocations: 0.5285 MB / 432.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007289/0.3291, allocations: 308.5 kB / 433.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.3293, allocations: 123.5 kB / 433.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.3293, allocations: 8.094 kB / 433.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3293, allocations: 39.56 kB / 433.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.3293, allocations: 0.7188 kB / 433.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002447/0.3318, allocations: 1.333 MB / 434.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.3319, allocations: 144.2 kB / 434.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/0.3323, allocations: 333.9 kB / 435.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.3323, allocations: 34.77 kB / 435.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.937e-05/0.3324, allocations: 141.8 kB / 435.3 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.3324, allocations: 52.42 kB / 435.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.419e-05/0.3325, allocations: 68.81 kB / 435.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.3326, allocations: 348.4 kB / 435.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3327, allocations: 65.97 kB / 435.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.333, allocations: 324 kB / 436.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.3333, allocations: 420.3 kB / 436.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.279e-06/0.3333, allocations: 2.156 kB / 436.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006061/0.3339, allocations: 407.4 kB / 437 MB, free: 8.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.334, allocations: 8.906 kB / 437 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.334, allocations: 13.16 kB / 437 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.116e-05/0.334, allocations: 14.91 kB / 437 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.3343, allocations: 95.77 kB / 437.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.3343, allocations: 15.47 kB / 437.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.3345, allocations: 26.08 kB / 437.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.3346, allocations: 24.59 kB / 437.2 MB, free: 8.09 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.0001441/0.3347, allocations: 164.5 kB / 437.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004928/0.3352, allocations: 299.1 kB / 437.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007051/0.3359, allocations: 389.1 kB / 438 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3359, allocations: 5.375 kB / 438 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3359, allocations: 0 / 438 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3359, allocations: 4.25 kB / 438 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004187/0.3363, allocations: 317.9 kB / 438.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3364, allocations: 0.7031 kB / 438.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006079/0.337, allocations: 124.7 kB / 438.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.337, allocations: 2.766 kB / 438.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.337, allocations: 21.03 kB / 438.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.337, allocations: 3.891 kB / 438.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.337, allocations: 1.156 kB / 438.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000957/0.338, allocations: 0.709 MB / 439.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.707e-05/0.338, allocations: 123.6 kB / 439.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.643e-05/0.3381, allocations: 21.73 kB / 439.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3383, allocations: 10.34 kB / 439.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.3384, allocations: 6.75 kB / 439.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.3384, allocations: 17.44 kB / 439.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.3387, allocations: 245 kB / 439.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3387, allocations: 0 / 439.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004628/0.3391, allocations: 61.78 kB / 439.7 MB, free: 6.648 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.0001245/0.3393, allocations: 119.7 kB / 439.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.3399, allocations: 289.6 kB / 440.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3399, allocations: 0 / 440.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.377e-05/0.3399, allocations: 31.27 kB / 440.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.3407, allocations: 197.9 kB / 440.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3421, allocations: 0.7449 MB / 441 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.3424, allocations: 0.8068 MB / 441.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.3426, allocations: 35.94 kB / 441.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3427, allocations: 30.81 kB / 441.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3427, allocations: 0 / 441.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01034/0.353, allocations: 3.683 MB / 445.6 MB, free: 4.926 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.8443614318966866]