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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001333, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 51.39 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1197, allocations: 49.44 MB / 350.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004452/0.1242, allocations: 2.208 MB / 352.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.1257, allocations: 0.5964 MB / 353 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.126, allocations: 4 kB / 353 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.1262, allocations: 27.61 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.1266, allocations: 71.41 kB / 353.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003576/0.1269, allocations: 78.22 kB / 353.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.1274, allocations: 275 kB / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.1276, allocations: 68.94 kB / 353.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1279, allocations: 107.4 kB / 353.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000262/0.1281, allocations: 151.2 kB / 353.7 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-05/0.1282, allocations: 24 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.1283, allocations: 24 kB / 353.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.1284, allocations: 63.69 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.1286, allocations: 131.1 kB / 354 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.129, allocations: 247.3 kB / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.1291, allocations: 0 / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1291, allocations: 0 / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.09e-05/0.1291, allocations: 4 kB / 354.2 MB, free: 284 kB / 286.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.001778/0.1309, allocations: 0.6191 MB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.131, allocations: 16.03 kB / 354.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.393e-05/0.131, allocations: 46.73 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.076e-05/0.1311, allocations: 40.47 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006318/0.1318, allocations: 312.4 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.1318, allocations: 16.22 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.1319, allocations: 15.91 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007739/0.1327, allocations: 367.9 kB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1327, allocations: 0 / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.1327, allocations: 4 kB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1327, allocations: 11.92 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.133, allocations: 87.89 kB / 355.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008884/0.1339, allocations: 0.5287 MB / 356.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007528/0.1346, allocations: 319.7 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.1349, allocations: 137.4 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.1349, allocations: 11.98 kB / 356.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.135, allocations: 39.14 kB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.284e-06/0.135, allocations: 0 / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002658/0.1376, allocations: 1.326 MB / 358.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.1378, allocations: 134.7 kB / 358.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.1383, allocations: 328.6 kB / 358.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.1383, allocations: 33.7 kB / 358.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1384, allocations: 145.1 kB / 358.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.1385, allocations: 47.56 kB / 358.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.619e-05/0.1386, allocations: 70.14 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1388, allocations: 350.8 kB / 359.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1389, allocations: 68.84 kB / 359.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.1392, allocations: 314.7 kB / 359.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004402/0.1397, allocations: 420.8 kB / 359.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1397, allocations: 4 kB / 359.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006825/0.1404, allocations: 409.2 kB / 360.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.1404, allocations: 8 kB / 360.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.1404, allocations: 8 kB / 360.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.1405, allocations: 12 kB / 360.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.1408, allocations: 95.83 kB / 360.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.1408, allocations: 15.94 kB / 360.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.141, allocations: 27.84 kB / 360.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/0.1411, allocations: 24 kB / 360.5 MB, free: 9.344 MB / 302.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.0002259/0.1413, allocations: 174 kB / 360.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005025/0.1418, allocations: 301.1 kB / 361 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006811/0.1425, allocations: 379.2 kB / 361.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.1425, allocations: 4 kB / 361.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.1425, allocations: 0 / 361.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1425, allocations: 0 / 361.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004046/0.143, allocations: 337.2 kB / 361.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.143, allocations: 4.062 kB / 361.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000567/0.1435, allocations: 123.9 kB / 361.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.1436, allocations: 7.984 kB / 361.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.1436, allocations: 12 kB / 361.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.1436, allocations: 0 / 361.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.1436, allocations: 7.938 kB / 361.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1446, allocations: 0.7184 MB / 362.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1448, allocations: 112.8 kB / 362.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.1448, allocations: 15.98 kB / 362.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.1451, allocations: 11.94 kB / 362.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.1451, allocations: 7.984 kB / 362.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.1452, allocations: 12 kB / 362.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.1455, allocations: 243.1 kB / 363 MB, free: 6.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1455, allocations: 4.062 kB / 363 MB, free: 6.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005328/0.146, allocations: 60 kB / 363 MB, free: 6.738 MB / 302.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.001417/0.1475, allocations: 1.276 MB / 364.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.1482, allocations: 322 kB / 364.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1482, allocations: 192 / 364.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.357e-05/0.1483, allocations: 35.92 kB / 364.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/0.1491, allocations: 220.4 kB / 364.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.1526, allocations: 2.188 MB / 367.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.153, allocations: 0.8034 MB / 367.9 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.1532, allocations: 39.27 kB / 367.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.1534, allocations: 111.4 kB / 368 MB, free: 1.523 MB / 302.1 MB Notification: Performance of SimCode: time 9.81e-07/0.1534, allocations: 0 / 368 MB, free: 1.523 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2184/0.3718, allocations: 6.823 MB / 374.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.64, allocations: 12.45 kB / 374.8 MB, free: 24.93 MB / 302.1 MB (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.12 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "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! " 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