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.001715/0.001715, allocations: 117.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002021/0.002021, allocations: 199.9 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3578, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003483/0.3613, allocations: 2.221 MB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.3625, allocations: 0.616 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.3626, allocations: 4 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.3628, allocations: 27.61 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.3631, allocations: 75.42 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.3634, allocations: 71.83 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.3637, allocations: 275 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.3639, allocations: 76.7 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.3642, allocations: 123.4 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.3644, allocations: 147.2 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.3645, allocations: 20 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.3645, allocations: 24 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.555e-05/0.3646, allocations: 67.69 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3648, allocations: 127.1 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.3651, allocations: 265.6 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3651, allocations: 0 / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3651, allocations: 0 / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.3651, allocations: 0 / 412.9 MB, free: 13.39 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.001181/0.3663, allocations: 0.619 MB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3663, allocations: 8.031 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.495e-05/0.3664, allocations: 54.73 kB / 413.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.3665, allocations: 32.7 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/0.3669, allocations: 320.6 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.3669, allocations: 20.22 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.367, allocations: 12 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.3676, allocations: 369.9 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3677, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.3677, allocations: 4 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.3677, allocations: 4 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.3679, allocations: 91.89 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007624/0.3687, allocations: 0.5289 MB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007429/0.3695, allocations: 318.7 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.3697, allocations: 145.7 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3698, allocations: 4.656 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.3698, allocations: 42.5 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.3698, allocations: 0 / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002429/0.3723, allocations: 1.348 MB / 416.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3724, allocations: 134.8 kB / 416.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.3728, allocations: 328.6 kB / 417.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.3728, allocations: 33.7 kB / 417.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3729, allocations: 145.1 kB / 417.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.373, allocations: 47.67 kB / 417.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.062e-05/0.3731, allocations: 74.14 kB / 417.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3733, allocations: 350.8 kB / 417.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3734, allocations: 72.83 kB / 417.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003378/0.3738, allocations: 314.8 kB / 418.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.3743, allocations: 420.8 kB / 418.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3743, allocations: 0 / 418.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000643/0.3749, allocations: 409.6 kB / 419 MB, free: 6.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3749, allocations: 8 kB / 419 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.375, allocations: 16.08 kB / 419.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.375, allocations: 12 kB / 419.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.3753, allocations: 95.84 kB / 419.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.3753, allocations: 15.92 kB / 419.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.3755, allocations: 27.89 kB / 419.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.3756, allocations: 32 kB / 419.2 MB, free: 6.414 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.000182/0.3758, allocations: 165.6 kB / 419.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004952/0.3763, allocations: 296.8 kB / 419.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006835/0.377, allocations: 379.5 kB / 420.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.377, allocations: 4 kB / 420.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.377, allocations: 0 / 420.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.377, allocations: 7.984 kB / 420.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.3774, allocations: 317.3 kB / 420.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3774, allocations: 0 / 420.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006823/0.3781, allocations: 127.8 kB / 420.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.3782, allocations: 0 / 420.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.3782, allocations: 19.98 kB / 420.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.3782, allocations: 4 kB / 420.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3782, allocations: 0 / 420.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3794, allocations: 0.711 MB / 421.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.3796, allocations: 120.8 kB / 421.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/0.3796, allocations: 23.94 kB / 421.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.3799, allocations: 11.98 kB / 421.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.3799, allocations: 4 kB / 421.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.38, allocations: 15.98 kB / 421.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.3803, allocations: 243.1 kB / 421.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3803, allocations: 0 / 421.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.3807, allocations: 64 kB / 421.7 MB, free: 3.824 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.001468/0.3822, allocations: 1.28 MB / 423 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006334/0.3829, allocations: 300 kB / 423.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3829, allocations: 1.875 kB / 423.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.264e-05/0.383, allocations: 23.98 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.0007637/0.3837, allocations: 206.7 kB / 423.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005404/0.3891, allocations: 3.826 MB / 427.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005905/0.3898, allocations: 0.8073 MB / 428.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.3899, allocations: 31.28 kB / 428.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.3902, allocations: 119.4 kB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.476e-06/0.3902, allocations: 0 / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03317/0.4234, allocations: 7.11 MB / 435.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.921/9.345, allocations: 7.438 kB / 435.4 MB, free: 5.848 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.1.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