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.002194/0.002194, 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.002711/0.002711, 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.592/1.592, 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.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.001518/0.001518, allocations: 43.94 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1152, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003693/0.1189, allocations: 2.238 MB / 428.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.1202, allocations: 0.6199 MB / 429.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.1203, allocations: 7.938 kB / 429.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.1205, allocations: 27.61 kB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.1208, allocations: 79.42 kB / 429.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.121, allocations: 67.84 kB / 429.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.1214, allocations: 279 kB / 429.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.1216, allocations: 52.73 kB / 429.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.1218, allocations: 131.4 kB / 429.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.122, allocations: 139.2 kB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.047e-05/0.1221, allocations: 20 kB / 430 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.989e-05/0.1221, allocations: 28 kB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.1222, allocations: 63.69 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.1223, allocations: 131.1 kB / 430.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.1226, allocations: 258.7 kB / 430.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1226, allocations: 3.938 kB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1226, allocations: 0 / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1226, allocations: 3.938 kB / 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.2318/0.3544, allocations: 0.6201 MB / 431.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.3545, allocations: 11.09 kB / 431.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.6e-05/0.3546, allocations: 43.52 kB / 431.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.3547, allocations: 34.39 kB / 431.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.3551, allocations: 320.9 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3552, allocations: 8.812 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.3552, allocations: 18.55 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007569/0.356, allocations: 361.4 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.356, allocations: 7.297 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.356, allocations: 5.312 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.356, allocations: 5.578 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000227/0.3562, allocations: 90.17 kB / 431.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007246/0.357, allocations: 0.5315 MB / 432.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007035/0.3577, allocations: 308.2 kB / 432.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.3579, allocations: 125.2 kB / 432.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.3579, allocations: 7.781 kB / 432.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.3579, allocations: 33.47 kB / 432.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.3579, allocations: 0 / 432.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002276/0.3602, allocations: 1.343 MB / 434.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.3603, allocations: 143.9 kB / 434.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.3607, allocations: 329 kB / 434.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.3608, allocations: 31.83 kB / 434.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/0.3609, allocations: 144.8 kB / 434.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.894e-05/0.3609, allocations: 57.97 kB / 435 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.319e-05/0.361, allocations: 63.48 kB / 435 MB, free: 9.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.3611, allocations: 348 kB / 435.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.3613, allocations: 73.3 kB / 435.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.3616, allocations: 318.1 kB / 435.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/0.362, allocations: 416 kB / 436.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.362, allocations: 2.375 kB / 436.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006383/0.3627, allocations: 408.3 kB / 436.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.3627, allocations: 17.66 kB / 436.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.3627, allocations: 8.609 kB / 436.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.619e-05/0.3627, allocations: 12.97 kB / 436.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.363, allocations: 94.34 kB / 436.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.684e-05/0.3631, allocations: 24.12 kB / 436.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.3633, allocations: 27.42 kB / 436.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.3633, allocations: 20.28 kB / 436.8 MB, free: 8.051 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.0001614/0.3635, allocations: 165.5 kB / 436.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000492/0.364, allocations: 301.1 kB / 437.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006722/0.3646, allocations: 378.5 kB / 437.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3647, allocations: 9.469 kB / 437.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3647, allocations: 1.281 kB / 437.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.3647, allocations: 3.266 kB / 437.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.3651, allocations: 318.6 kB / 437.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.3651, allocations: 0 / 437.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.3657, allocations: 129.6 kB / 438 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.3657, allocations: 7.062 kB / 438 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.3657, allocations: 9.328 kB / 438.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3657, allocations: 2.734 kB / 438.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3657, allocations: 2.281 kB / 438.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.3668, allocations: 0.7117 MB / 438.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.538e-05/0.3668, allocations: 126.6 kB / 438.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/0.3669, allocations: 13.2 kB / 438.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.3671, allocations: 15.23 kB / 438.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.3672, allocations: 15.67 kB / 438.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.3672, allocations: 13.5 kB / 438.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.3675, allocations: 243.6 kB / 439.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3675, allocations: 0 / 439.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005322/0.368, allocations: 62.72 kB / 439.2 MB, free: 6.609 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.001724/0.3698, allocations: 1.279 MB / 440.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008236/0.3706, allocations: 287.9 kB / 440.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3706, allocations: 0 / 440.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.361e-05/0.3707, allocations: 28.06 kB / 440.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3717, allocations: 192.1 kB / 441 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005402/0.3771, allocations: 3.821 MB / 444.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.3776, allocations: 0.807 MB / 445.6 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.3778, allocations: 36.45 kB / 445.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.378, allocations: 115.6 kB / 445.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of SimCode: time 2.985e-06/0.378, allocations: 1.375 kB / 445.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03882/0.4168, allocations: 7.173 MB / 453 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.167/9.584, allocations: 6.375 kB / 453 MB, free: 0.6836 MB / 350.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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.csv","/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] "Error: Could not read variable filter.x[1] in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[1] from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[2] in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[2] from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[3] in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[3] from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.c in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.c from file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.T in file Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.T from file Modelica_4.1.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: 12.506184772006236]