Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_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.001236/0.001236, allocations: 98.77 kB / 16.94 MB, free: 6.445 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.001411/0.001411, allocations: 182.3 kB / 17.83 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004779, allocations: 15.44 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08964/0.09013, allocations: 47.58 MB / 328.4 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01455/0.1047, allocations: 11.08 MB / 339.5 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.117, allocations: 9.814 MB / 349.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1171, allocations: 4 kB / 349.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.1175, allocations: 63.72 kB / 349.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1177, allocations: 79.7 kB / 349.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01376/0.1315, allocations: 3.911 MB / 353.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003692/0.1319, allocations: 155.7 kB / 353.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.1e-05/0.132, allocations: 17.38 kB / 353.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005954/0.1326, allocations: 207.3 kB / 353.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.1327, allocations: 63.75 kB / 353.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.1328, allocations: 8 kB / 353.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01404/0.1468, allocations: 6.809 MB / 360.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.803e-05/0.147, allocations: 23.92 kB / 360.6 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.577e-05/0.1471, allocations: 49.64 kB / 360.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005492/0.1526, allocations: 2.565 MB / 363.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1526, allocations: 3.938 kB / 363.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1526, allocations: 4 kB / 363.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1526, allocations: 0 / 363.3 MB, free: 1.082 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.004845/0.1575, allocations: 1.108 MB / 364.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1575, allocations: 8.031 kB / 364.4 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.343e-05/0.1576, allocations: 46.55 kB / 364.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004945/0.1581, allocations: 59.72 kB / 364.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.1584, allocations: 218.8 kB / 364.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.1585, allocations: 12.28 kB / 364.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.132e-05/0.1585, allocations: 16 kB / 364.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1598, allocations: 386.5 kB / 365.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.1598, allocations: 7.906 kB / 365.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.1599, allocations: 4 kB / 365.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1599, allocations: 4 kB / 365.1 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1613, allocations: 372.2 kB / 365.5 MB, free: 14.74 MB / 318.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.001449/0.1627, allocations: 1.192 MB / 366.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.1636, allocations: 288.3 kB / 366.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2488/0.4125, allocations: 47.88 MB / 414.8 MB, free: 24.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.4125, allocations: 42 kB / 414.9 MB, free: 24.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.4125, allocations: 0 / 414.9 MB, free: 24.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006483/0.419, allocations: 1.62 MB / 416.5 MB, free: 22.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.4191, allocations: 113.1 kB / 416.6 MB, free: 22.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.801e-05/0.4192, allocations: 117.7 kB / 416.7 MB, free: 22.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.4192, allocations: 29.73 kB / 416.7 MB, free: 22.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.4193, allocations: 111.5 kB / 416.8 MB, free: 22.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.074e-05/0.4194, allocations: 121.7 kB / 417 MB, free: 22.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/0.4194, allocations: 4.656 kB / 417 MB, free: 22.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.655e-05/0.4195, allocations: 328.5 kB / 417.3 MB, free: 21.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.4198, allocations: 139.7 kB / 417.4 MB, free: 21.61 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.4202, allocations: 205.5 kB / 417.6 MB, free: 21.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.4205, allocations: 149.6 kB / 417.8 MB, free: 21.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4205, allocations: 0 / 417.8 MB, free: 21.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009444/0.4215, allocations: 442.6 kB / 418.2 MB, free: 20.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.4215, allocations: 8 kB / 418.2 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.4215, allocations: 0 / 418.2 MB, free: 20.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002388/0.4218, allocations: 40.83 kB / 418.3 MB, free: 20.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.4222, allocations: 96.03 kB / 418.3 MB, free: 20.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002672/0.4225, allocations: 0.5407 MB / 418.9 MB, free: 20.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.4228, allocations: 27.97 kB / 418.9 MB, free: 20.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.4229, allocations: 16.64 kB / 418.9 MB, free: 20.06 MB / 318.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.0001301/0.423, allocations: 141.7 kB / 419.1 MB, free: 19.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-05/0.4231, allocations: 19.81 kB / 419.1 MB, free: 19.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.4249, allocations: 1.458 MB / 420.5 MB, free: 18.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.425, allocations: 24 kB / 420.6 MB, free: 18.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.425, allocations: 2.297 kB / 420.6 MB, free: 18.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.425, allocations: 5.062 kB / 420.6 MB, free: 18.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.4274, allocations: 1.983 MB / 422.6 MB, free: 16.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.4274, allocations: 4 kB / 422.6 MB, free: 16.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.4278, allocations: 87.86 kB / 422.7 MB, free: 16.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.4281, allocations: 76.88 kB / 422.7 MB, free: 16.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.4282, allocations: 15.67 kB / 422.7 MB, free: 16.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002375/0.4284, allocations: 0.5837 MB / 423.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4284, allocations: 1.094 kB / 423.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.4302, allocations: 1.781 MB / 425.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-05/0.4303, allocations: 124.4 kB / 425.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.687e-05/0.4304, allocations: 12.03 kB / 425.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.4307, allocations: 39.58 kB / 425.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.4308, allocations: 30.61 kB / 425.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.4308, allocations: 19.98 kB / 425.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.761e-05/0.4309, allocations: 91.23 kB / 425.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.4309, allocations: 0 / 425.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002702/0.4336, allocations: 0.9629 MB / 426.4 MB, free: 12.51 MB / 318.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.006911/0.4405, allocations: 3.751 MB / 430.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.4417, allocations: 0.5885 MB / 430.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4417, allocations: 8.438 kB / 430.7 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007128/0.4424, allocations: 0.5084 MB / 431.2 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.4431, allocations: 76.23 kB / 431.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005724/0.4488, allocations: 3.733 MB / 435 MB, free: 3.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.4491, allocations: 0.8372 MB / 435.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000394/0.4495, allocations: 129.7 kB / 436 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.4497, allocations: 142.6 kB / 436.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4497, allocations: 0 / 436.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06869/0.5184, allocations: 40.35 MB / 476.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/0.5186, allocations: 193 kB / 476.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4/4.519, allocations: 0 / 476.7 MB, free: 10.07 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat