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.001551/0.001551, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001641/0.001641, allocations: 195 kB / 18 MB, free: 5.074 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 51.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3528, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004492/0.3574, allocations: 2.216 MB / 402.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.3588, allocations: 0.5926 MB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002773/0.3591, allocations: 0 / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.3594, allocations: 27.61 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003939/0.3598, allocations: 75.42 kB / 403.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.3602, allocations: 79.83 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.3606, allocations: 275 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.3608, allocations: 64.94 kB / 403.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.3611, allocations: 123.4 kB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.3613, allocations: 143.2 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.3613, allocations: 20 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.67e-05/0.3614, allocations: 24 kB / 403.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.3615, allocations: 63.69 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.3617, allocations: 135.1 kB / 404 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.362, allocations: 257.7 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3621, allocations: 0 / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3621, allocations: 0 / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.3621, allocations: 0 / 404.3 MB, free: 4.734 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.001202/0.3633, allocations: 0.6298 MB / 404.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3633, allocations: 16.03 kB / 404.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.022e-05/0.3634, allocations: 50.67 kB / 405 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.3636, allocations: 32.75 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.364, allocations: 316.5 kB / 405.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.3641, allocations: 16.22 kB / 405.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.3641, allocations: 15.98 kB / 405.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.3648, allocations: 362.7 kB / 405.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.3648, allocations: 0 / 405.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.3648, allocations: 8 kB / 405.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.3648, allocations: 0 / 405.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.3651, allocations: 95.89 kB / 405.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000795/0.3659, allocations: 0.5288 MB / 406.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006788/0.3666, allocations: 307.8 kB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.3668, allocations: 140.2 kB / 406.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.3668, allocations: 11.84 kB / 406.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3669, allocations: 43.22 kB / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.3669, allocations: 0 / 406.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002403/0.3693, allocations: 1.351 MB / 408.2 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.3694, allocations: 139.4 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.3698, allocations: 324.6 kB / 408.6 MB, free: 52 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.3699, allocations: 41.64 kB / 408.7 MB, free: 4 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.37, allocations: 145.1 kB / 408.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.37, allocations: 47.75 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.384e-05/0.3701, allocations: 70.14 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3703, allocations: 346.8 kB / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.3704, allocations: 72.83 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.3707, allocations: 318.8 kB / 409.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.3712, allocations: 416.9 kB / 410.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3713, allocations: 4 kB / 410.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005895/0.3718, allocations: 413.5 kB / 410.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.3719, allocations: 15.94 kB / 410.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3719, allocations: 8 kB / 410.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.3719, allocations: 16 kB / 410.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.3722, allocations: 91.83 kB / 410.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/0.3722, allocations: 19.92 kB / 410.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.3725, allocations: 23.94 kB / 410.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.3725, allocations: 24 kB / 410.7 MB, free: 13.74 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.0001829/0.3727, allocations: 176.7 kB / 410.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004849/0.3732, allocations: 293.5 kB / 411.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/0.3739, allocations: 375.5 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.433e-06/0.3739, allocations: 4 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3739, allocations: 4 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.3739, allocations: 3.984 kB / 411.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003807/0.3743, allocations: 325.3 kB / 411.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3743, allocations: 4 kB / 411.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005427/0.3748, allocations: 127.8 kB / 412 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3749, allocations: 0 / 412 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3749, allocations: 12 kB / 412 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.3749, allocations: 7.984 kB / 412 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3749, allocations: 0 / 412 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3759, allocations: 0.7148 MB / 412.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.376, allocations: 116.8 kB / 412.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.3761, allocations: 12 kB / 412.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.3763, allocations: 15.92 kB / 412.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.3764, allocations: 11.94 kB / 412.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.3764, allocations: 11.98 kB / 412.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.3767, allocations: 243.1 kB / 413.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3767, allocations: 0 / 413.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000458/0.3771, allocations: 68.06 kB / 413.2 MB, free: 11.14 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.001287/0.3784, allocations: 1.272 MB / 414.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.379, allocations: 301.4 kB / 414.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.379, allocations: 0.6875 kB / 414.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.645e-05/0.3791, allocations: 24 kB / 414.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007504/0.3798, allocations: 220.6 kB / 415 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/0.3845, allocations: 3.834 MB / 418.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.3849, allocations: 0.8111 MB / 419.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.385, allocations: 35.28 kB / 419.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.3852, allocations: 115.4 kB / 419.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3852, allocations: 0 / 419.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.41, allocations: 7.107 MB / 426.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.753/9.163, allocations: 11.3 kB / 426.9 MB, free: 13.16 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