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.001165/0.001166, allocations: 97.09 kB / 16.3 MB, free: 5.656 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.00103/0.00103, allocations: 183.6 kB / 17.2 MB, free: 5.59 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.287/1.287, allocations: 223.2 MB / 241.1 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002721, allocations: 8 kB / 300.8 MB, free: 6.383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.09242, allocations: 50.41 MB / 351.2 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01343/0.1059, allocations: 11.08 MB / 362.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.22/0.3259, allocations: 9.805 MB / 372.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001782/0.3261, allocations: 3.75 kB / 372.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003563/0.3265, allocations: 65.17 kB / 372.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.3268, allocations: 77.03 kB / 372.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01476/0.3416, allocations: 3.93 MB / 376.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.342, allocations: 156.1 kB / 376.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.754e-05/0.3421, allocations: 8.281 kB / 376.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005338/0.3426, allocations: 204.9 kB / 376.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.3428, allocations: 63.91 kB / 376.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.3428, allocations: 4.625 kB / 376.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01612/0.3589, allocations: 6.814 MB / 383.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.3591, allocations: 26.17 kB / 383.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3592, allocations: 47.89 kB / 383.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007062/0.3662, allocations: 2.569 MB / 386.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3663, allocations: 1.062 kB / 386.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3663, allocations: 0 / 386.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3663, allocations: 0 / 386.1 MB, free: 7.695 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.005802/0.3721, allocations: 1.111 MB / 387.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.3722, allocations: 9.875 kB / 387.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.132e-05/0.3723, allocations: 50.17 kB / 387.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004721/0.3728, allocations: 60.61 kB / 387.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.373, allocations: 213.8 kB / 387.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.373, allocations: 17.27 kB / 387.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.3731, allocations: 14.41 kB / 387.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.3744, allocations: 386.8 kB / 387.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.3744, allocations: 6.469 kB / 387.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.3744, allocations: 5.469 kB / 387.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3745, allocations: 5.922 kB / 387.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.3758, allocations: 365.9 kB / 388.3 MB, free: 6.367 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.001247/0.3771, allocations: 1.187 MB / 389.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007703/0.3779, allocations: 285.1 kB / 389.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.098/0.4759, allocations: 47.89 MB / 437.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.328e-05/0.476, allocations: 37.81 kB / 437.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.176e-06/0.476, allocations: 0 / 437.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.006675/0.4827, allocations: 1.62 MB / 439.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.4828, allocations: 110.8 kB / 439.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.4829, allocations: 129.4 kB / 439.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.4829, allocations: 28.83 kB / 439.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.483, allocations: 101 kB / 439.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.4831, allocations: 121.5 kB / 439.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.4831, allocations: 5.25 kB / 439.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.4833, allocations: 327.3 kB / 440.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.4836, allocations: 141.2 kB / 440.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/0.484, allocations: 194.1 kB / 440.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/0.4844, allocations: 154.8 kB / 440.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4844, allocations: 2.078 kB / 440.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009835/0.4854, allocations: 428.7 kB / 441 MB, free: 1.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.4854, allocations: 10.34 kB / 441 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.4854, allocations: 0 / 441 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.4857, allocations: 43.11 kB / 441 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.4862, allocations: 93.94 kB / 441.1 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003908/0.4866, allocations: 0.5483 MB / 441.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.4869, allocations: 27.39 kB / 441.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.4869, allocations: 22.36 kB / 441.7 MB, free: 0.6523 MB / 350.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.0001504/0.4871, allocations: 140.2 kB / 441.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.4872, allocations: 19.77 kB / 441.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.4892, allocations: 1.465 MB / 443.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/0.4892, allocations: 20.97 kB / 443.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.4892, allocations: 0 / 443.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.4892, allocations: 3.984 kB / 443.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.4919, allocations: 1.999 MB / 445.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.4919, allocations: 4 kB / 445.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.4923, allocations: 89.77 kB / 445.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000329/0.4927, allocations: 79.53 kB / 445.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.4927, allocations: 7.812 kB / 445.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003417/0.4931, allocations: 0.5916 MB / 446.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.237e-06/0.4931, allocations: 11.17 kB / 446.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.4952, allocations: 1.762 MB / 447.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.4953, allocations: 124.5 kB / 448 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.4954, allocations: 19.95 kB / 448.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.4957, allocations: 23.98 kB / 448.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.4958, allocations: 27.95 kB / 448.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.4958, allocations: 15.98 kB / 448.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.284e-05/0.4959, allocations: 93.89 kB / 448.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4959, allocations: 0 / 448.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003576/0.4995, allocations: 0.9644 MB / 449.2 MB, free: 10.62 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.008362/0.5079, allocations: 3.756 MB / 452.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.5091, allocations: 0.6069 MB / 453.5 MB, free: 6.312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.5092, allocations: 0 / 453.5 MB, free: 6.312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007466/0.5099, allocations: 0.5135 MB / 454.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.5106, allocations: 68.42 kB / 454.1 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/0.5172, allocations: 3.761 MB / 457.9 MB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.5176, allocations: 0.8217 MB / 458.7 MB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004481/0.5181, allocations: 143.2 kB / 458.9 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.5183, allocations: 127.7 kB / 459 MB, free: 0.793 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.5183, allocations: 0 / 459 MB, free: 0.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0674/0.5857, allocations: 40.36 MB / 499.3 MB, free: 8.566 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.5859, allocations: 189 kB / 499.5 MB, free: 8.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.981/4.566, allocations: 0 / 499.5 MB, free: 8.328 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