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.001195/0.001195, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001129/0.001129, allocations: 200 kB / 18.01 MB, free: 5.055 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.353/1.353, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 47.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3457, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004872/0.3506, allocations: 2.209 MB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.352, allocations: 0.5964 MB / 403 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.3522, allocations: 4 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.3524, allocations: 27.61 kB / 403.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003401/0.3528, allocations: 75.41 kB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.3531, allocations: 71.84 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.3535, allocations: 279 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.3537, allocations: 68.94 kB / 403.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.3539, allocations: 111.4 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.3542, allocations: 147.2 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.476e-05/0.3542, allocations: 31.94 kB / 403.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.048e-05/0.3543, allocations: 24 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.989e-05/0.3544, allocations: 63.69 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.3545, allocations: 123.1 kB / 404 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.3548, allocations: 268.5 kB / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3548, allocations: 0 / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3548, allocations: 0 / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.3549, allocations: 0 / 404.3 MB, free: 4.711 MB / 318.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.001318/0.3562, allocations: 0.6075 MB / 404.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3562, allocations: 8.031 kB / 404.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.297e-05/0.3563, allocations: 54.73 kB / 405 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.619e-05/0.3564, allocations: 32.56 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.3569, allocations: 316.3 kB / 405.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.3569, allocations: 16.22 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.357, allocations: 16 kB / 405.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007329/0.3577, allocations: 374.5 kB / 405.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3577, allocations: 0 / 405.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.3577, allocations: 4 kB / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3578, allocations: 4 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002208/0.358, allocations: 87.95 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.3589, allocations: 0.5288 MB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/0.3596, allocations: 307.9 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.3599, allocations: 143.9 kB / 406.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.3599, allocations: 7.859 kB / 406.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.36, allocations: 42.55 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.533e-06/0.36, allocations: 0 / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002543/0.3625, allocations: 1.333 MB / 408.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.3627, allocations: 135.4 kB / 408.3 MB, free: 404 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/0.363, allocations: 328.6 kB / 408.6 MB, free: 68 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.3631, allocations: 37.64 kB / 408.6 MB, free: 24 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3632, allocations: 149 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.19e-05/0.3632, allocations: 47.47 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.38e-05/0.3633, allocations: 74.17 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3635, allocations: 346.8 kB / 409.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.3636, allocations: 72.83 kB / 409.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.3639, allocations: 322.7 kB / 409.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004419/0.3644, allocations: 420.9 kB / 410 MB, free: 14.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3644, allocations: 0 / 410 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006067/0.365, allocations: 409.4 kB / 410.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3651, allocations: 8 kB / 410.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3651, allocations: 11.94 kB / 410.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.3651, allocations: 12 kB / 410.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.3654, allocations: 91.84 kB / 410.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.3654, allocations: 23.92 kB / 410.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.3656, allocations: 20 kB / 410.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.3657, allocations: 24 kB / 410.6 MB, free: 13.76 MB / 334.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.0002104/0.3659, allocations: 181.8 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/0.3664, allocations: 293.3 kB / 411.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006711/0.3671, allocations: 379.7 kB / 411.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3671, allocations: 7.984 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3671, allocations: 0 / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3671, allocations: 4 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.3675, allocations: 325.3 kB / 411.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.3675, allocations: 0 / 411.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.3681, allocations: 127.9 kB / 411.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3681, allocations: 0 / 411.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.3682, allocations: 15.98 kB / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.3682, allocations: 0 / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3682, allocations: 7.938 kB / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.3693, allocations: 0.7107 MB / 412.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3694, allocations: 116.7 kB / 412.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.3695, allocations: 15.98 kB / 412.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3697, allocations: 8 kB / 412.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.571e-05/0.3698, allocations: 7.984 kB / 412.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.3698, allocations: 12 kB / 412.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.37, allocations: 247 kB / 413.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3701, allocations: 0 / 413.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.3705, allocations: 64 kB / 413.1 MB, free: 11.16 MB / 334.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.00131/0.3718, allocations: 1.275 MB / 414.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005415/0.3724, allocations: 297.8 kB / 414.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3724, allocations: 0 / 414.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.626e-05/0.3725, allocations: 28.42 kB / 414.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007752/0.3732, allocations: 216.7 kB / 414.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.3778, allocations: 3.822 MB / 418.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.3783, allocations: 0.8073 MB / 419.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3784, allocations: 39.2 kB / 419.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.3786, allocations: 115.4 kB / 419.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3786, allocations: 0 / 419.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04038/0.419, allocations: 7.112 MB / 426.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.964/9.383, allocations: 6.953 kB / 426.8 MB, free: 13.19 MB / 350.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