Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.00173/0.00173, allocations: 123.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.001991/0.001991, allocations: 200.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.579/1.579, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 47.94 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.145, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl): time 0.004461/0.1495, allocations: 2.095 MB / 428.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.151, allocations: 0.5769 MB / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002354/0.1512, allocations: 3.938 kB / 429 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.1514, allocations: 27.67 kB / 429 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004364/0.1518, allocations: 71.42 kB / 429.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.1521, allocations: 55.92 kB / 429.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.1526, allocations: 259.1 kB / 429.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.1528, allocations: 44.7 kB / 429.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003316/0.1531, allocations: 119.4 kB / 429.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.1534, allocations: 143.2 kB / 429.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.253e-05/0.1534, allocations: 20 kB / 429.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.459e-05/0.1535, allocations: 20 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1536, allocations: 55.7 kB / 429.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.1537, allocations: 123.2 kB / 429.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003837/0.1541, allocations: 242.7 kB / 430.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1541, allocations: 4 kB / 430.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1541, allocations: 0 / 430.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.1542, allocations: 0 / 430.2 MB, free: 0.9531 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.00139/0.1555, allocations: 0.6071 MB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.1556, allocations: 8.031 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.309e-05/0.1557, allocations: 42.75 kB / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.21e-05/0.1557, allocations: 32.75 kB / 430.9 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2508/0.4065, allocations: 307.9 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.4065, allocations: 7.469 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.4066, allocations: 11.94 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.407, allocations: 121.2 kB / 431.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.4071, allocations: 2.75 kB / 431.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.4071, allocations: 4.625 kB / 431.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4071, allocations: 2.875 kB / 431.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002427/0.4073, allocations: 88.16 kB / 431.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.4084, allocations: 0.5231 MB / 431.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.409, allocations: 171.1 kB / 432.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.4091, allocations: 59.27 kB / 432.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.4091, allocations: 3.422 kB / 432.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.4092, allocations: 40.98 kB / 432.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.405e-06/0.4092, allocations: 5.531 kB / 432.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001555/0.4107, allocations: 0.6606 MB / 432.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.4108, allocations: 57.59 kB / 432.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.4111, allocations: 336.9 kB / 433.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.4111, allocations: 25.7 kB / 433.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.4112, allocations: 159.7 kB / 433.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/0.4112, allocations: 60.09 kB / 433.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-05/0.4113, allocations: 40.5 kB / 433.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.4114, allocations: 339.7 kB / 433.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.4115, allocations: 61.41 kB / 433.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.4116, allocations: 66.69 kB / 434 MB, free: 9.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.4119, allocations: 148 kB / 434.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.4119, allocations: 0 / 434.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003758/0.4122, allocations: 214.9 kB / 434.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4122, allocations: 7.656 kB / 434.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.4123, allocations: 0 / 434.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.4123, allocations: 1.188 kB / 434.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.4126, allocations: 65.3 kB / 434.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.4126, allocations: 0.9688 kB / 434.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.4127, allocations: 6.812 kB / 434.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.4127, allocations: 3.938 kB / 434.4 MB, free: 9.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001017/0.4128, allocations: 140.5 kB / 434.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/0.4129, allocations: 31.05 kB / 434.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/0.4133, allocations: 217 kB / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4133, allocations: 2.344 kB / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4133, allocations: 0 / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4133, allocations: 2.766 kB / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.4137, allocations: 333.6 kB / 435.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4137, allocations: 0 / 435.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/0.414, allocations: 60.3 kB / 435.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.414, allocations: 1.219 kB / 435.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.4141, allocations: 7.234 kB / 435.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4141, allocations: 2.594 kB / 435.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4141, allocations: 0 / 435.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005293/0.4146, allocations: 399.2 kB / 435.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.4147, allocations: 108.6 kB / 435.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.4147, allocations: 7.969 kB / 435.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.4149, allocations: 3.312 kB / 435.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.4149, allocations: 17.47 kB / 435.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.415, allocations: 6.281 kB / 435.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.4152, allocations: 249.2 kB / 436 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4152, allocations: 3.75 kB / 436 MB, free: 8.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.4155, allocations: 41.5 kB / 436 MB, free: 8.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0007618/0.4163, allocations: 0.9321 MB / 436.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003452/0.4166, allocations: 148.2 kB / 437.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4166, allocations: 0 / 437.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.4168, allocations: 82.48 kB / 437.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.4171, allocations: 32.39 kB / 437.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.421, allocations: 3.064 MB / 440.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.4213, allocations: 0.7669 MB / 441 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.4214, allocations: 31.38 kB / 441.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.4216, allocations: 92.91 kB / 441.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4216, allocations: 0 / 441.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.4588, allocations: 5.716 MB / 446.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.772/9.231, allocations: 14.73 kB / 446.9 MB, free: 4.582 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv --start-time 0 --stop-time 500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.09996 Modelica_4_1_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/Utilities/ComponentsMixingUnit/MixingUnitWithContinuousControl/MixingUnitWithContinuousControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable filter.x[2] in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv. Warning: Get data of variable filter.x[2] from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv failed! Error: Could not read variable filter.x[3] in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv. Warning: Get data of variable filter.x[3] from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.076354257005733]