Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008762/0.0008762, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009121/0.0009121, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8896/0.8896, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.256e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002097/0.00211, allocations: 2.09 MB / 320.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007202/0.00283, allocations: 0.5654 MB / 321.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.836e-05/0.002929, allocations: 3.938 kB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.003038, allocations: 35.55 kB / 321.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.003279, allocations: 79.36 kB / 321.2 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.003495, allocations: 75.77 kB / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.003726, allocations: 287 kB / 321.6 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.003852, allocations: 57.05 kB / 321.6 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.004, allocations: 159.5 kB / 321.8 MB, free: 2.969 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.004117, allocations: 111.5 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.451e-05/0.004152, allocations: 20 kB / 321.9 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.257e-05/0.004174, allocations: 24 kB / 321.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.736e-05/0.004232, allocations: 59.69 kB / 322 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.496e-05/0.004297, allocations: 91.61 kB / 322.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.004494, allocations: 255 kB / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.004496, allocations: 0 / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.004497, allocations: 0 / 322.3 MB, free: 2.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.004501, allocations: 0 / 322.3 MB, free: 2.418 MB / 282.7 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.0006802/0.005181, allocations: 0.5508 MB / 322.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.005231, allocations: 8.922 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.56e-05/0.005277, allocations: 50.73 kB / 322.9 MB, free: 1.773 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.286e-05/0.00532, allocations: 36.73 kB / 323 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/0.005886, allocations: 266 kB / 323.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.005899, allocations: 8.656 kB / 323.2 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.005931, allocations: 20.36 kB / 323.2 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.006385, allocations: 374.2 kB / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.006393, allocations: 0 / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.006406, allocations: 8 kB / 323.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.00641, allocations: 4 kB / 323.6 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.006541, allocations: 83.95 kB / 323.7 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.007, allocations: 472.6 kB / 324.2 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.007433, allocations: 307.6 kB / 324.5 MB, free: 112 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.007582, allocations: 133.9 kB / 324.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.007605, allocations: 4 kB / 324.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.887e-05/0.007624, allocations: 39.22 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.007626, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.0014/0.009026, allocations: 1.152 MB / 325.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.009102, allocations: 138.6 kB / 325.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.009346, allocations: 328.5 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.009365, allocations: 33.7 kB / 326.3 MB, free: 14.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.582e-05/0.00943, allocations: 141.1 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.009461, allocations: 47.61 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.009496, allocations: 29.72 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.112e-05/0.009577, allocations: 346.7 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.369e-05/0.009631, allocations: 35.98 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.056e-05/0.009701, allocations: 90.84 kB / 327 MB, free: 13.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.00982, allocations: 134.8 kB / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.009821, allocations: 0 / 327.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001793/0.01, allocations: 185.3 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.01001, allocations: 7.938 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.01002, allocations: 7.984 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.01003, allocations: 0 / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.288e-05/0.0101, allocations: 35.92 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.01011, allocations: 4 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.06e-05/0.01018, allocations: 11.94 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.01019, allocations: 8 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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 9.833e-05/0.01029, allocations: 146 kB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.01058, allocations: 293 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004011/0.01098, allocations: 373.6 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.01098, allocations: 7.984 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.01099, allocations: 4 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.01099, allocations: 3.984 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.01122, allocations: 236.6 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.01122, allocations: 0 / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.0115, allocations: 123.8 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.01151, allocations: 7.938 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.01153, allocations: 11.98 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.01153, allocations: 4 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01153, allocations: 0 / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006166/0.01215, allocations: 0.6875 MB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.01219, allocations: 39.78 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.445e-05/0.01222, allocations: 15.94 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.01234, allocations: 11.98 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.01237, allocations: 8 kB / 329.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.01238, allocations: 23.92 kB / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.01254, allocations: 243.1 kB / 329.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01254, allocations: 0 / 329.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00022/0.01276, allocations: 48 kB / 329.6 MB, free: 10.71 MB / 298.7 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.0009141/0.01368, allocations: 1.253 MB / 330.8 MB, free: 9.426 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.01393, allocations: 196.8 kB / 331 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.01393, allocations: 4 kB / 331 MB, free: 9.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.668e-05/0.01397, allocations: 27.94 kB / 331.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.01445, allocations: 200.3 kB / 331.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.01685, allocations: 3.042 MB / 334.3 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.01698, allocations: 197.6 kB / 334.5 MB, free: 5.621 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.55e-05/0.01703, allocations: 22.97 kB / 334.5 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.01716, allocations: 116.5 kB / 334.6 MB, free: 5.488 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01716, allocations: 0 / 334.6 MB, free: 5.488 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.0366, allocations: 7.619 MB / 342.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.87/6.907, allocations: 11.09 kB / 342.3 MB, free: 13.98 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0545355 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable filter.x[1] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[1] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[2] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[2] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[3] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[3] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.c in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.c from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.T in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.T from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,filter.x[1],filter.x[2],filter.x[3],invMixingUnit.c,invMixingUnit.T,mixingUnit.c,mixingUnit.T Variables in the result:time,mixingUnit.T,mixingUnit.c [Calling sys.exit(0), Time elapsed: 8.739545072428882]