Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.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.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002082, allocations: 204.6 kB / 18.74 MB, free: 4.316 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.437/1.437, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002113/0.002114, allocations: 59.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2664, allocations: 50.56 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.04397/0.3104, allocations: 37.52 MB / 446.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007348/0.3178, allocations: 4.576 MB / 451.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006955/0.3185, allocations: 8 kB / 451.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.3198, allocations: 302.2 kB / 451.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001304/0.3211, allocations: 481.3 kB / 452 MB, free: 6.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005124/0.3263, allocations: 1.642 MB / 453.6 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001865/0.3282, allocations: 1.276 MB / 454.9 MB, free: 3.434 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003539/0.3285, allocations: 162.7 kB / 455 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009352/0.3295, allocations: 466.5 kB / 455.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007559/0.3303, allocations: 406.4 kB / 455.9 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.3304, allocations: 44 kB / 455.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.3323, allocations: 0.7649 MB / 456.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.3325, allocations: 131.6 kB / 456.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004339/0.333, allocations: 282.9 kB / 457.1 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.3349, allocations: 1.048 MB / 458.1 MB, free: 152 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3349, allocations: 0 / 458.1 MB, free: 152 kB / 366.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.3349, allocations: 4 kB / 458.2 MB, free: 148 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.845e-05/0.335, allocations: 0 / 458.2 MB, free: 148 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001407/0.3364, allocations: 0.7905 MB / 458.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.3364, allocations: 8.031 kB / 458.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.3365, allocations: 74.72 kB / 459 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006025/0.3371, allocations: 84.62 kB / 459.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.3377, allocations: 343.5 kB / 459.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.3378, allocations: 33.31 kB / 459.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.3379, allocations: 44.38 kB / 459.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/0.3386, allocations: 471.5 kB / 460 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.3386, allocations: 4 kB / 460 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.204e-05/0.3387, allocations: 16 kB / 460 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.3387, allocations: 8 kB / 460 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005/0.3392, allocations: 303.7 kB / 460.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0142/0.3534, allocations: 6.75 MB / 467.1 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.3541, allocations: 266.5 kB / 467.3 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.3543, allocations: 153.7 kB / 467.5 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.3652, allocations: 3.9 MB / 471.4 MB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.3653, allocations: 35.16 kB / 471.4 MB, free: 1.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.665e-06/0.3653, allocations: 0 / 471.4 MB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01231/0.3776, allocations: 2.466 MB / 473.9 MB, free: 15.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.3777, allocations: 59.39 kB / 473.9 MB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.3782, allocations: 299.2 kB / 474.2 MB, free: 14.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.3782, allocations: 37.64 kB / 474.2 MB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.3784, allocations: 228.5 kB / 474.5 MB, free: 14.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3786, allocations: 166.6 kB / 474.6 MB, free: 14.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.3788, allocations: 106.2 kB / 474.7 MB, free: 14.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.379, allocations: 346.8 kB / 475.1 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.3793, allocations: 149.1 kB / 475.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.3796, allocations: 275.7 kB / 475.5 MB, free: 13.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000716/0.3804, allocations: 476.2 kB / 476 MB, free: 13.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3804, allocations: 0 / 476 MB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001229/0.3816, allocations: 0.5918 MB / 476.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.3817, allocations: 8 kB / 476.6 MB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.3817, allocations: 4 kB / 476.6 MB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007924/0.3896, allocations: 1.852 MB / 478.4 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004628/0.3901, allocations: 111.8 kB / 478.5 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.3926, allocations: 2.558 MB / 481.1 MB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.393, allocations: 16 kB / 481.1 MB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.3931, allocations: 20 kB / 481.1 MB, free: 7.707 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (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 {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002885/0.3934, allocations: 181.7 kB / 481.3 MB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3935, allocations: 43.59 kB / 481.3 MB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.3949, allocations: 0.8552 MB / 482.2 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.3949, allocations: 7.984 kB / 482.2 MB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3949, allocations: 0 / 482.2 MB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/0.3961, allocations: 0.9574 MB / 483.2 MB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.3984, allocations: 1.494 MB / 484.6 MB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.3984, allocations: 3.984 kB / 484.7 MB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.3988, allocations: 75.91 kB / 484.7 MB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003471/0.4022, allocations: 0.6218 MB / 485.3 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.202e-05/0.4024, allocations: 19.94 kB / 485.4 MB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.4036, allocations: 1.277 MB / 486.6 MB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.4036, allocations: 3.938 kB / 486.6 MB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.4055, allocations: 1.221 MB / 487.9 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.4057, allocations: 116.9 kB / 488 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.685e-05/0.4058, allocations: 16.06 kB / 488 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.406, allocations: 11.94 kB / 488 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.4061, allocations: 27.95 kB / 488 MB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.4061, allocations: 19.98 kB / 488.1 MB, free: 0.5039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002698/0.4064, allocations: 210 kB / 488.3 MB, free: 304 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4064, allocations: 0 / 488.3 MB, free: 304 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009019/0.4073, allocations: 231.7 kB / 488.5 MB, free: 72 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002893/0.4102, allocations: 1.952 MB / 490.4 MB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.4117, allocations: 0.6984 MB / 491.1 MB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4118, allocations: 0 / 491.1 MB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.4128, allocations: 444.5 kB / 491.6 MB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.4143, allocations: 228.8 kB / 491.8 MB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007571/0.4219, allocations: 4.487 MB / 496.3 MB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.4226, allocations: 0.8402 MB / 497.1 MB, free: 7.164 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.423, allocations: 72.33 kB / 497.2 MB, free: 7.094 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.4233, allocations: 159.4 kB / 497.4 MB, free: 6.938 MB / 414.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4233, allocations: 0 / 497.4 MB, free: 6.938 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05469/0.478, allocations: 17.39 MB / 0.5027 GB, free: 5.758 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.99, allocations: 7.938 kB / 0.5027 GB, free: 5.75 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1)