Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, 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.001367/0.001367, 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.457/1.457, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001954/0.001954, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2625, allocations: 50.56 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006594/0.2692, allocations: 5.041 MB / 414.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.2722, allocations: 1.336 MB / 415.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005365/0.2728, allocations: 11.94 kB / 415.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005129/0.2734, allocations: 162.5 kB / 415.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008155/0.2742, allocations: 317.2 kB / 415.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.2747, allocations: 231.6 kB / 416.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.276, allocations: 1.18 MB / 417.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004627/0.2765, allocations: 310.1 kB / 417.6 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006173/0.2771, allocations: 454.4 kB / 418.1 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00066/0.2778, allocations: 0.5057 MB / 418.6 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.278, allocations: 100 kB / 418.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.2782, allocations: 112 kB / 418.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.2784, allocations: 227.1 kB / 419 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005332/0.2789, allocations: 0.5211 MB / 419.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.2802, allocations: 1.213 MB / 420.7 MB, free: 5.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2802, allocations: 0 / 420.7 MB, free: 5.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2802, allocations: 0 / 420.7 MB, free: 5.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.2803, allocations: 0 / 420.7 MB, free: 5.641 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002528/0.2828, allocations: 1.367 MB / 422.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.2829, allocations: 8.031 kB / 422.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001896/0.2831, allocations: 123.9 kB / 422.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.2833, allocations: 120.3 kB / 422.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.2844, allocations: 0.5993 MB / 423 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.2846, allocations: 139 kB / 423.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.2847, allocations: 63.94 kB / 423.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.2863, allocations: 0.8626 MB / 424 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.2863, allocations: 4 kB / 424 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.2864, allocations: 28 kB / 424.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.2864, allocations: 12 kB / 424.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.2879, allocations: 0.6063 MB / 424.7 MB, free: 1.473 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.2918, allocations: 2.089 MB / 426.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.2932, allocations: 0.846 MB / 427.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008764/0.2941, allocations: 399.5 kB / 428 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.684e-05/0.2942, allocations: 12.64 kB / 428 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.2943, allocations: 51.22 kB / 428.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.555e-06/0.2943, allocations: 3.938 kB / 428.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005501/0.2998, allocations: 1.797 MB / 429.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005491/0.3004, allocations: 0.8272 MB / 430.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.3015, allocations: 0.6332 MB / 431.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002406/0.3017, allocations: 49.69 kB / 431.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003612/0.3021, allocations: 345.3 kB / 431.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/0.3025, allocations: 261.7 kB / 432 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.3028, allocations: 146.7 kB / 432.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.303, allocations: 386.8 kB / 432.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007649/0.3038, allocations: 269.8 kB / 432.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009837/0.3048, allocations: 0.5546 MB / 433.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.3062, allocations: 0.674 MB / 434 MB, free: 7.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3063, allocations: 0 / 434 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003013/0.3093, allocations: 1.106 MB / 435.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.843e-05/0.3094, allocations: 85.11 kB / 435.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3094, allocations: 7.938 kB / 435.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007734/0.3102, allocations: 227.3 kB / 435.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006515/0.3109, allocations: 147.8 kB / 435.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008627/0.3195, allocations: 6.943 MB / 442.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009716/0.3205, allocations: 95.84 kB / 442.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.998e-05/0.3206, allocations: 24 kB / 442.6 MB, free: 14.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003874/0.321, allocations: 221.7 kB / 442.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.3212, allocations: 103.4 kB / 442.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.3214, allocations: 91.33 kB / 443 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3214, allocations: 8 kB / 443 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3214, allocations: 0 / 443 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002956/0.3244, allocations: 1.241 MB / 444.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004692/0.3291, allocations: 1.928 MB / 446.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3292, allocations: 0 / 446.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007159/0.3299, allocations: 139.8 kB / 446.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000572/0.3305, allocations: 210.3 kB / 446.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.883e-05/0.3305, allocations: 15.94 kB / 446.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007294/0.3378, allocations: 5.338 MB / 451.9 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3379, allocations: 0 / 451.9 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003639/0.3415, allocations: 1.399 MB / 453.3 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005758/0.3421, allocations: 244.4 kB / 453.5 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.3423, allocations: 20 kB / 453.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006646/0.343, allocations: 47.95 kB / 453.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.3432, allocations: 60.56 kB / 453.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/0.3432, allocations: 19.98 kB / 453.7 MB, free: 2.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006669/0.3439, allocations: 459 kB / 454.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3439, allocations: 0 / 454.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3449, allocations: 291.7 kB / 454.4 MB, free: 1.828 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003934/0.3489, allocations: 1.97 MB / 456.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.3516, allocations: 1.352 MB / 457.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.3517, allocations: 0 / 457.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.3532, allocations: 0.773 MB / 458.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.3545, allocations: 235.2 kB / 458.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.3684, allocations: 7.55 MB / 466.3 MB, free: 5.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006042/0.369, allocations: 0.9517 MB / 467.2 MB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004947/0.3695, allocations: 98.44 kB / 467.3 MB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004957/0.37, allocations: 307.3 kB / 467.6 MB, free: 4.23 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.37, allocations: 0 / 467.6 MB, free: 4.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07484/0.4449, allocations: 25.95 MB / 493.6 MB, free: 10.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.85, allocations: 4.062 kB / 493.6 MB, free: 10.7 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1)