Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",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.0008363/0.0008363, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.0009176/0.0009177, allocations: 179.7 kB / 17.21 MB, free: 5.602 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.309/1.309, allocations: 223.2 MB / 241.2 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002729, allocations: 4 kB / 300.9 MB, free: 6.391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09513, allocations: 50.42 MB / 351.3 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01227/0.1074, allocations: 11.96 MB / 363.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1759/0.2834, allocations: 10.7 MB / 374 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.2836, allocations: 0.625 kB / 374 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.2839, allocations: 55.45 kB / 374 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.2842, allocations: 75.66 kB / 374.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01225/0.2964, allocations: 3.872 MB / 378 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.2969, allocations: 244.2 kB / 378.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.483e-05/0.2969, allocations: 8.641 kB / 378.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003978/0.2973, allocations: 178.1 kB / 378.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2975, allocations: 74.22 kB / 378.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.2975, allocations: 4.125 kB / 378.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01449/0.312, allocations: 6.647 MB / 385.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.3122, allocations: 24.64 kB / 385.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.3123, allocations: 51.33 kB / 385.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005931/0.3182, allocations: 2.579 MB / 387.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3183, allocations: 1 kB / 387.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3183, allocations: 0 / 387.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3183, allocations: 0 / 387.8 MB, free: 7.32 MB / 302.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.00532/0.3236, allocations: 1.107 MB / 388.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3237, allocations: 11.36 kB / 388.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.3237, allocations: 52.39 kB / 388.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004205/0.3242, allocations: 54.17 kB / 389 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.3244, allocations: 215.8 kB / 389.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.3244, allocations: 13.05 kB / 389.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.3245, allocations: 15.03 kB / 389.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.3255, allocations: 390.5 kB / 389.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3256, allocations: 7.312 kB / 389.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.3256, allocations: 13.34 kB / 389.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3256, allocations: 3.375 kB / 389.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3268, allocations: 364.7 kB / 390 MB, free: 5.973 MB / 302.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.001012/0.3278, allocations: 1.19 MB / 391.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.3285, allocations: 298.6 kB / 391.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.3288, allocations: 118.2 kB / 391.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08345/0.4122, allocations: 47.88 MB / 439.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.4123, allocations: 49.3 kB / 439.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.964e-06/0.4123, allocations: 0 / 439.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.006036/0.4184, allocations: 1.607 MB / 441.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.4184, allocations: 110.8 kB / 441.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.808e-05/0.4186, allocations: 124.7 kB / 441.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.4186, allocations: 36.02 kB / 441.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.4187, allocations: 95.61 kB / 441.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.111e-05/0.4187, allocations: 121.1 kB / 441.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.4188, allocations: 10.38 kB / 441.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4189, allocations: 332.9 kB / 441.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.4192, allocations: 129.6 kB / 442.1 MB, free: 1.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.4196, allocations: 202.2 kB / 442.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.42, allocations: 153.8 kB / 442.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.42, allocations: 0 / 442.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009267/0.4209, allocations: 429.7 kB / 442.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.4209, allocations: 14.38 kB / 442.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4209, allocations: 0 / 442.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002252/0.4212, allocations: 36.08 kB / 442.9 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.4216, allocations: 101.8 kB / 443 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000392/0.422, allocations: 0.5442 MB / 443.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.4223, allocations: 27.53 kB / 443.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.4224, allocations: 15.12 kB / 443.6 MB, free: 15.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.4225, allocations: 134.1 kB / 443.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.519e-05/0.4226, allocations: 27.84 kB / 443.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.4246, allocations: 1.46 MB / 445.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.4247, allocations: 19.97 kB / 445.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4247, allocations: 3.938 kB / 445.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4247, allocations: 6.297 kB / 445.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002659/0.4274, allocations: 1.998 MB / 447.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4274, allocations: 4 kB / 447.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/0.4278, allocations: 91.98 kB / 447.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003226/0.4281, allocations: 68.8 kB / 447.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.4282, allocations: 11.98 kB / 447.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003352/0.4285, allocations: 0.5952 MB / 448 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4285, allocations: 0 / 448 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.4306, allocations: 1.695 MB / 449.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-05/0.4307, allocations: 124.5 kB / 449.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.4307, allocations: 15.95 kB / 449.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/0.4311, allocations: 28.02 kB / 449.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.4311, allocations: 31.95 kB / 449.9 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.4312, allocations: 18.08 kB / 449.9 MB, free: 9.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.788e-05/0.4312, allocations: 91.27 kB / 450 MB, free: 9.699 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4313, allocations: 0 / 450 MB, free: 9.699 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003783/0.435, allocations: 0.9566 MB / 450.9 MB, free: 8.742 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008531/0.4436, allocations: 3.29 MB / 454.2 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.4449, allocations: 0.601 MB / 454.8 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.4449, allocations: 4 kB / 454.8 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007251/0.4457, allocations: 0.515 MB / 455.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007511/0.4464, allocations: 76.16 kB / 455.4 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.4517, allocations: 2.711 MB / 458.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.4521, allocations: 0.8177 MB / 459 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004024/0.4525, allocations: 134.9 kB / 459.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.4528, allocations: 127.4 kB / 459.2 MB, free: 440 kB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4528, allocations: 4 kB / 459.2 MB, free: 436 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06666/0.5194, allocations: 40.4 MB / 499.6 MB, free: 8.145 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.5196, allocations: 200.8 kB / 499.8 MB, free: 7.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.046/4.565, allocations: 0 / 499.8 MB, free: 7.902 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat