Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 56.59 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1171, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004208/0.1214, allocations: 2.216 MB / 359.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1227, allocations: 0.6199 MB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.123, allocations: 4 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.1232, allocations: 27.61 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004489/0.1237, allocations: 75.42 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.1241, allocations: 71.8 kB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004892/0.1246, allocations: 275.1 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.1248, allocations: 64.94 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.125, allocations: 123.4 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.1253, allocations: 147.2 kB / 361.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-05/0.1253, allocations: 20 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.608e-05/0.1254, allocations: 24 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.688e-05/0.1255, allocations: 67.62 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.1256, allocations: 127.1 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.1259, allocations: 255.2 kB / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1259, allocations: 0 / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.126, allocations: 0 / 361.7 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.126, allocations: 0 / 361.7 MB, free: 9.926 MB / 302.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.001229/0.1272, allocations: 0.6152 MB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1273, allocations: 8.031 kB / 362.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.223e-05/0.1273, allocations: 50.73 kB / 362.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.1274, allocations: 36.47 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.1278, allocations: 316.3 kB / 362.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.1278, allocations: 20.22 kB / 362.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.1279, allocations: 12 kB / 362.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000636/0.1285, allocations: 381.6 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1286, allocations: 3.938 kB / 363.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1286, allocations: 4 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1286, allocations: 4 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.1288, allocations: 83.95 kB / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/0.1295, allocations: 0.5441 MB / 363.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006856/0.1302, allocations: 311 kB / 364 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.1305, allocations: 146 kB / 364.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.1305, allocations: 8 kB / 364.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1305, allocations: 30.56 kB / 364.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 3.116e-06/0.1306, allocations: 4 kB / 364.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002887/0.1334, allocations: 1.325 MB / 365.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.1336, allocations: 138.8 kB / 365.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.1341, allocations: 328.6 kB / 366 MB, free: 5.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.1341, allocations: 33.7 kB / 366 MB, free: 5.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1343, allocations: 149 kB / 366.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/0.1344, allocations: 43.53 kB / 366.2 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.1345, allocations: 70.14 kB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.1347, allocations: 346.8 kB / 366.6 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.1349, allocations: 72.83 kB / 366.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.1352, allocations: 318.7 kB / 367 MB, free: 4.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005189/0.1358, allocations: 428.9 kB / 367.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.1358, allocations: 4 kB / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006945/0.1365, allocations: 405.4 kB / 367.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.1365, allocations: 11.98 kB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1365, allocations: 8 kB / 367.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.63e-05/0.1366, allocations: 16.03 kB / 367.9 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.1368, allocations: 91.84 kB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/0.1369, allocations: 19.92 kB / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.1371, allocations: 27.84 kB / 368 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.1372, allocations: 24 kB / 368 MB, free: 2.957 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.0001889/0.1374, allocations: 171.3 kB / 368.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004594/0.1378, allocations: 289 kB / 368.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006664/0.1385, allocations: 379.1 kB / 368.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1385, allocations: 8 kB / 368.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1385, allocations: 0 / 368.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.1386, allocations: 3.984 kB / 368.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.139, allocations: 329.2 kB / 369.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.139, allocations: 0 / 369.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005717/0.1396, allocations: 123.8 kB / 369.3 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.1396, allocations: 4 kB / 369.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.1396, allocations: 19.98 kB / 369.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1396, allocations: 0 / 369.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.1396, allocations: 0 / 369.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1407, allocations: 0.7147 MB / 370 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.175e-05/0.1408, allocations: 112.7 kB / 370.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.1409, allocations: 24.19 kB / 370.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.1411, allocations: 11.98 kB / 370.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.1412, allocations: 7.984 kB / 370.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.1412, allocations: 15.98 kB / 370.2 MB, free: 0.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002652/0.1415, allocations: 243.1 kB / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1415, allocations: 0 / 370.4 MB, free: 444 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.142, allocations: 60 kB / 370.5 MB, free: 384 kB / 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.2063/0.3483, allocations: 1.267 MB / 371.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000787/0.3491, allocations: 338.4 kB / 372.1 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3491, allocations: 2.031 kB / 372.1 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.3492, allocations: 33.17 kB / 372.1 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008366/0.3501, allocations: 206.8 kB / 372.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.3537, allocations: 2.174 MB / 374.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.354, allocations: 0.8071 MB / 375.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.3541, allocations: 35.12 kB / 375.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.3543, allocations: 115.2 kB / 375.5 MB, free: 17.67 MB / 302.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3543, allocations: 0 / 375.5 MB, free: 17.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03384/0.3882, allocations: 6.817 MB / 382.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.447, allocations: 9.859 kB / 382.3 MB, free: 16.58 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[1] from file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[2] in file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[2] from file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[3] in file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[3] from file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.c in file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.c from file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.T in file Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.T from file Modelica_trunk_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