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.001258/0.001258, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3242, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003816/0.3281, allocations: 2.221 MB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.3296, allocations: 0.6082 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.3298, allocations: 7.938 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.3301, allocations: 23.67 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.3304, allocations: 79.34 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.3308, allocations: 75.11 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.3312, allocations: 283.1 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.3314, allocations: 68.72 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.3317, allocations: 123.4 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002321/0.3319, allocations: 147.2 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.332, allocations: 24 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.195e-05/0.3321, allocations: 24 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.423e-05/0.3321, allocations: 67.67 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.3323, allocations: 123.1 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.3327, allocations: 261.6 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3327, allocations: 0 / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3327, allocations: 0 / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3327, allocations: 4 kB / 412.9 MB, free: 13.41 MB / 334.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.001233/0.334, allocations: 0.6229 MB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.334, allocations: 12.02 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.328e-05/0.3341, allocations: 42.75 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.687e-05/0.3342, allocations: 36.7 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.3346, allocations: 320.6 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3346, allocations: 16.22 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.3347, allocations: 16 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006458/0.3353, allocations: 369.9 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-06/0.3354, allocations: 0 / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.3354, allocations: 4 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3354, allocations: 8 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.3356, allocations: 91.89 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.3363, allocations: 0.5249 MB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006934/0.337, allocations: 319.7 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.3372, allocations: 146 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.3373, allocations: 12.59 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.892e-05/0.3374, allocations: 34.55 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.362e-06/0.3374, allocations: 0 / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.00235/0.3397, allocations: 1.348 MB / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3399, allocations: 134.8 kB / 416.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/0.3403, allocations: 332.6 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.3403, allocations: 33.83 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3405, allocations: 145.1 kB / 417.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.032e-05/0.3405, allocations: 51.67 kB / 417.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.789e-05/0.3406, allocations: 70.14 kB / 417.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002573/0.3409, allocations: 350.7 kB / 417.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.341, allocations: 72.83 kB / 417.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.3413, allocations: 318.7 kB / 418.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.3417, allocations: 412.9 kB / 418.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3418, allocations: 4 kB / 418.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006477/0.3424, allocations: 417.2 kB / 419 MB, free: 6.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3424, allocations: 8 kB / 419.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.3425, allocations: 8 kB / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.3425, allocations: 12 kB / 419.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.3428, allocations: 95.83 kB / 419.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.3428, allocations: 16.47 kB / 419.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.343, allocations: 27.89 kB / 419.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.343, allocations: 24 kB / 419.2 MB, free: 6.43 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.0001753/0.3432, allocations: 173.6 kB / 419.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004669/0.3437, allocations: 296.8 kB / 419.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006332/0.3443, allocations: 375.5 kB / 420.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.3444, allocations: 4 kB / 420.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3444, allocations: 0 / 420.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3444, allocations: 8 kB / 420.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003998/0.3448, allocations: 325.3 kB / 420.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3448, allocations: 0 / 420.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000613/0.3454, allocations: 123.9 kB / 420.5 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3454, allocations: 7.984 kB / 420.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.3455, allocations: 8 kB / 420.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.3455, allocations: 0 / 420.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3455, allocations: 4 kB / 420.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009887/0.3465, allocations: 0.715 MB / 421.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.346e-05/0.3466, allocations: 120.8 kB / 421.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.3466, allocations: 23.86 kB / 421.4 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.3469, allocations: 8 kB / 421.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.3469, allocations: 11.98 kB / 421.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.347, allocations: 12.06 kB / 421.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002539/0.3472, allocations: 243.1 kB / 421.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3472, allocations: 0 / 421.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004335/0.3477, allocations: 64 kB / 421.7 MB, free: 3.832 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.001299/0.349, allocations: 1.284 MB / 423 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005168/0.3495, allocations: 293.6 kB / 423.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3495, allocations: 0 / 423.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.769e-05/0.3496, allocations: 35.92 kB / 423.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007263/0.3503, allocations: 205.7 kB / 423.5 MB, free: 2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/0.3549, allocations: 3.822 MB / 427.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.3553, allocations: 0.8073 MB / 428.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.901e-05/0.3554, allocations: 35.27 kB / 428.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.3556, allocations: 119.4 kB / 428.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3556, allocations: 0 / 428.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.3839, allocations: 7.103 MB / 435.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.877/9.261, allocations: 15.5 kB / 435.4 MB, free: 5.855 MB / 350.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