Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0-beta_om_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.001482/0.001482, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.001679, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.506/1.506, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3004, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00392/0.3044, allocations: 2.217 MB / 411.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.3058, allocations: 0.616 MB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.306, allocations: 4 kB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3062, allocations: 27.61 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.3065, allocations: 75.42 kB / 412 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.3068, allocations: 79.81 kB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003663/0.3072, allocations: 275 kB / 412.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.3074, allocations: 76.7 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.3077, allocations: 115.4 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.3079, allocations: 147.2 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.689e-05/0.308, allocations: 24 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.976e-05/0.308, allocations: 20 kB / 412.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.356e-05/0.3081, allocations: 59.7 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.3083, allocations: 135.1 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000368/0.3086, allocations: 265.6 kB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3086, allocations: 0 / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3087, allocations: 0 / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3087, allocations: 0 / 413.2 MB, free: 13.24 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.001276/0.3099, allocations: 0.619 MB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.31, allocations: 8.031 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.214e-05/0.3101, allocations: 46.73 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.3102, allocations: 36.7 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004666/0.3106, allocations: 328.5 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.3107, allocations: 12.22 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.3107, allocations: 20 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007242/0.3115, allocations: 377.8 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3115, allocations: 0 / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.3115, allocations: 4 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.3115, allocations: 4 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.3118, allocations: 83.95 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000854/0.3126, allocations: 0.521 MB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007642/0.3134, allocations: 327.6 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.3137, allocations: 140 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.3137, allocations: 0.6562 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.129e-05/0.3138, allocations: 38.56 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.494e-06/0.3138, allocations: 4 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002758/0.3166, allocations: 1.352 MB / 417.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.3167, allocations: 138.7 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.3172, allocations: 324.6 kB / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.3172, allocations: 29.7 kB / 417.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.3173, allocations: 145.1 kB / 417.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.3174, allocations: 51.67 kB / 417.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.3175, allocations: 78.12 kB / 417.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.3177, allocations: 350.8 kB / 418.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3179, allocations: 72.83 kB / 418.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.3183, allocations: 318.7 kB / 418.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005877/0.3189, allocations: 412.9 kB / 418.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.3189, allocations: 4 kB / 418.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008154/0.3197, allocations: 405.6 kB / 419.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.3197, allocations: 8 kB / 419.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.3198, allocations: 8.094 kB / 419.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.074e-05/0.3198, allocations: 16 kB / 419.4 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.3202, allocations: 99.77 kB / 419.5 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/0.3202, allocations: 15.94 kB / 419.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.3205, allocations: 31.88 kB / 419.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.3205, allocations: 20 kB / 419.5 MB, free: 6.27 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.0003043/0.3208, allocations: 165.6 kB / 419.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005911/0.3214, allocations: 296.9 kB / 420 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008116/0.3223, allocations: 383.5 kB / 420.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.3223, allocations: 4 kB / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3223, allocations: 0 / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3223, allocations: 3.984 kB / 420.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005112/0.3228, allocations: 325.3 kB / 420.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3228, allocations: 0 / 420.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/0.3235, allocations: 123.8 kB / 420.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.3235, allocations: 4 kB / 420.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-05/0.3235, allocations: 16 kB / 420.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3235, allocations: 3.938 kB / 420.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.299e-06/0.3235, allocations: 4 kB / 420.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.3247, allocations: 0.7111 MB / 421.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3249, allocations: 120.8 kB / 421.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.541e-05/0.3249, allocations: 16 kB / 421.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3252, allocations: 15.98 kB / 421.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.3253, allocations: 4 kB / 421.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.3253, allocations: 16.06 kB / 421.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003421/0.3256, allocations: 247 kB / 422 MB, free: 3.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3256, allocations: 3.938 kB / 422 MB, free: 3.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005049/0.3261, allocations: 60 kB / 422 MB, free: 3.672 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.001554/0.3277, allocations: 1.284 MB / 423.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006577/0.3284, allocations: 288.2 kB / 423.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3284, allocations: 1.938 kB / 423.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.455e-05/0.3285, allocations: 35.92 kB / 423.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008269/0.3293, allocations: 212 kB / 423.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.335, allocations: 3.814 MB / 427.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.3355, allocations: 0.8112 MB / 428.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.3357, allocations: 31.28 kB / 428.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.3359, allocations: 123.4 kB / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.336, allocations: 0 / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.3735, allocations: 7.105 MB / 435.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.155/9.529, allocations: 14.25 kB / 435.7 MB, free: 5.723 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1)