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.001402/0.001402, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001483/0.001483, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.504/1.504, allocations: 230.6 MB / 254.1 MB, free: 15.09 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 51.88 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1013, allocations: 53.34 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003462/0.1047, allocations: 2.23 MB / 428.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1059, allocations: 0.6199 MB / 429.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.106, allocations: 3.938 kB / 429.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1061, allocations: 27.67 kB / 429.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.1063, allocations: 87.33 kB / 429.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.1066, allocations: 67.86 kB / 429.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003082/0.1069, allocations: 271 kB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.107, allocations: 60.72 kB / 429.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.1072, allocations: 123.4 kB / 429.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/0.1074, allocations: 147.2 kB / 429.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.29e-05/0.1075, allocations: 24 kB / 430 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.09e-05/0.1075, allocations: 24 kB / 430 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.419e-05/0.1076, allocations: 63.69 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1077, allocations: 131.1 kB / 430.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.108, allocations: 258.7 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.108, allocations: 0 / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.108, allocations: 3.938 kB / 430.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.108, allocations: 0 / 430.4 MB, free: 0.6602 MB / 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.2122/0.3202, allocations: 0.6158 MB / 431 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.785e-05/0.3203, allocations: 11.08 kB / 431.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.595e-05/0.3204, allocations: 51.86 kB / 431.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.3205, allocations: 32.94 kB / 431.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.321, allocations: 322.3 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.321, allocations: 10.94 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.3211, allocations: 15.97 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000714/0.3218, allocations: 365.4 kB / 431.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3218, allocations: 4.844 kB / 431.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.3218, allocations: 8.141 kB / 431.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3218, allocations: 2.594 kB / 431.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.322, allocations: 92.38 kB / 431.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006529/0.3227, allocations: 0.5278 MB / 432.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/0.3234, allocations: 303.8 kB / 432.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.3236, allocations: 131.2 kB / 432.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.3236, allocations: 3.062 kB / 432.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.3236, allocations: 40.62 kB / 432.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.3236, allocations: 1.656 kB / 432.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002121/0.3258, allocations: 1.343 MB / 434.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/0.3258, allocations: 137.2 kB / 434.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.3262, allocations: 330.3 kB / 434.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3262, allocations: 31.14 kB / 434.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.494e-05/0.3263, allocations: 144.4 kB / 434.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.3263, allocations: 54.23 kB / 435 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/0.3264, allocations: 68.52 kB / 435 MB, free: 9.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.797e-05/0.3264, allocations: 346.6 kB / 435.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.3266, allocations: 71.39 kB / 435.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.3268, allocations: 316.3 kB / 435.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3271, allocations: 422.4 kB / 436.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3271, allocations: 2.719 kB / 436.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005911/0.3277, allocations: 409.1 kB / 436.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.3278, allocations: 12.72 kB / 436.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3278, allocations: 9.781 kB / 436.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.3278, allocations: 13.94 kB / 436.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.328, allocations: 98.02 kB / 436.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.3281, allocations: 20.09 kB / 436.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.3283, allocations: 23.7 kB / 436.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.3283, allocations: 24.47 kB / 436.8 MB, free: 8.098 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.0001475/0.3285, allocations: 162.6 kB / 436.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004521/0.3289, allocations: 304.2 kB / 437.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.3296, allocations: 380.7 kB / 437.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3296, allocations: 5.625 kB / 437.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3296, allocations: 2.016 kB / 437.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3296, allocations: 2.906 kB / 437.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.3299, allocations: 318.2 kB / 437.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3299, allocations: 1.406 kB / 437.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/0.3305, allocations: 125.2 kB / 438 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.044e-06/0.3305, allocations: 8.094 kB / 438 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.3305, allocations: 7.219 kB / 438 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3305, allocations: 7.828 kB / 438.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3305, allocations: 0.5625 kB / 438.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009546/0.3315, allocations: 0.7109 MB / 438.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.959e-05/0.3316, allocations: 122.2 kB / 438.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.3316, allocations: 17 kB / 438.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.3319, allocations: 23.55 kB / 438.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.3319, allocations: 3.625 kB / 438.9 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.3319, allocations: 14.8 kB / 438.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.3322, allocations: 243.7 kB / 439.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3322, allocations: 2.531 kB / 439.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000441/0.3326, allocations: 63.12 kB / 439.2 MB, free: 6.656 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.001097/0.3337, allocations: 1.28 MB / 440.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.3343, allocations: 284.6 kB / 440.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3343, allocations: 0 / 440.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.974e-05/0.3343, allocations: 26.97 kB / 440.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.3351, allocations: 198.3 kB / 441 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004586/0.3397, allocations: 3.818 MB / 444.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.34, allocations: 0.8099 MB / 445.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.3401, allocations: 37.72 kB / 445.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.3403, allocations: 114.4 kB / 445.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3403, allocations: 0 / 445.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.3761, allocations: 7.178 MB / 453 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.037/9.413, allocations: 11.41 kB / 453 MB, free: 0.7109 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] 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: 11.946706658927724]