Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.001846/0.001846, allocations: 114 kB / 17.07 MB, free: 5.969 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.001997/0.001997, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 51.91 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2905, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl): time 0.004771/0.2953, allocations: 2.091 MB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2968, allocations: 0.5457 MB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002667/0.2971, allocations: 4 kB / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.2973, allocations: 27.67 kB / 402.9 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004506/0.2978, allocations: 79.42 kB / 403 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.2981, allocations: 55.92 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004174/0.2985, allocations: 259 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2987, allocations: 60.7 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.2989, allocations: 107.4 kB / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.2992, allocations: 135.3 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.758e-05/0.2993, allocations: 20 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-05/0.2993, allocations: 20 kB / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.2994, allocations: 63.7 kB / 403.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.2996, allocations: 115.1 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.2999, allocations: 241.8 kB / 404 MB, free: 4.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2999, allocations: 0 / 404 MB, free: 4.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2999, allocations: 0 / 404 MB, free: 4.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.3, allocations: 0 / 404 MB, free: 4.98 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.001281/0.3013, allocations: 0.6071 MB / 404.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3013, allocations: 15.88 kB / 404.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.107e-05/0.3014, allocations: 46.69 kB / 404.7 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.383e-05/0.3015, allocations: 36.7 kB / 404.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.3019, allocations: 300.4 kB / 405 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.302, allocations: 15.94 kB / 405.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.302, allocations: 15.95 kB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.3023, allocations: 125.5 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3023, allocations: 0 / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.3023, allocations: 4 kB / 405.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.3024, allocations: 4 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.3026, allocations: 75.91 kB / 405.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009756/0.3035, allocations: 0.5314 MB / 405.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.3041, allocations: 178.7 kB / 406 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.3042, allocations: 61.03 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.3043, allocations: 0 / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.3043, allocations: 42.56 kB / 406.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.223e-06/0.3043, allocations: 0 / 406.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.001656/0.306, allocations: 0.6538 MB / 406.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.306, allocations: 55.41 kB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.3064, allocations: 332.6 kB / 407.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3065, allocations: 25.7 kB / 407.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3066, allocations: 168.3 kB / 407.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.3067, allocations: 71.42 kB / 407.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-05/0.3068, allocations: 33.7 kB / 407.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3069, allocations: 342.8 kB / 407.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.3071, allocations: 63.91 kB / 407.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.3072, allocations: 61.28 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.3075, allocations: 143.1 kB / 408 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3075, allocations: 0 / 408 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003868/0.3079, allocations: 220.2 kB / 408.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3079, allocations: 4 kB / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.3079, allocations: 0 / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.308, allocations: 0 / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.3083, allocations: 71.83 kB / 408.3 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3083, allocations: 0 / 408.3 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.3085, allocations: 7.938 kB / 408.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.3085, allocations: 8 kB / 408.3 MB, free: 444 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001354/0.3086, allocations: 137.8 kB / 408.4 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.3087, allocations: 31.81 kB / 408.5 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004216/0.3091, allocations: 220.6 kB / 408.7 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3091, allocations: 7.938 kB / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3091, allocations: 0 / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3091, allocations: 0 / 408.7 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.3095, allocations: 321.4 kB / 409 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3095, allocations: 3.938 kB / 409 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003687/0.3099, allocations: 63.89 kB / 409.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3099, allocations: 0 / 409.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.3099, allocations: 8 kB / 409.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.31, allocations: 7.922 kB / 409.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.31, allocations: 0 / 409.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005885/0.3106, allocations: 393.2 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.3107, allocations: 109 kB / 409.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/0.3107, allocations: 8 kB / 409.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.3109, allocations: 11.92 kB / 409.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.311, allocations: 15.89 kB / 409.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.311, allocations: 4 kB / 409.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.3113, allocations: 251 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3113, allocations: 0 / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.3116, allocations: 40 kB / 409.9 MB, free: 14.73 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000879/0.3125, allocations: 0.9231 MB / 410.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003603/0.3129, allocations: 167.1 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3129, allocations: 0 / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001571/0.313, allocations: 87.89 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.3134, allocations: 33.09 kB / 411.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.3175, allocations: 3.057 MB / 414.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.3179, allocations: 0.7673 MB / 414.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.318, allocations: 34.2 kB / 415 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.3182, allocations: 91.41 kB / 415.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3182, allocations: 0 / 415.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.3454, allocations: 5.686 MB / 420.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.309/8.654, allocations: 4.219 kB / 420.7 MB, free: 3.961 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv --start-time 0 --stop-time 500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/Utilities/ComponentsMixingUnit/MixingUnitWithContinuousControl/MixingUnitWithContinuousControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches