Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002262/0.002268, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 91.7 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003842/0.0003844, allocations: 8 kB / 327 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3267, allocations: 47.58 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01663/0.3434, allocations: 11.08 MB / 385.7 MB, free: 36.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01513/0.3586, allocations: 9.831 MB / 395.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.3588, allocations: 4 kB / 395.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.3592, allocations: 59.78 kB / 395.6 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.3595, allocations: 83.7 kB / 395.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01566/0.3751, allocations: 3.913 MB / 399.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.3755, allocations: 155.7 kB / 399.7 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.903e-05/0.3756, allocations: 9.453 kB / 399.7 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006354/0.3762, allocations: 203.3 kB / 399.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.3764, allocations: 63.77 kB / 400 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3764, allocations: 8 kB / 400 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01627/0.3927, allocations: 6.809 MB / 406.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.792e-05/0.3928, allocations: 27.91 kB / 406.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.857e-05/0.3929, allocations: 49.64 kB / 406.9 MB, free: 16.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006088/0.399, allocations: 2.565 MB / 409.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3991, allocations: 0 / 409.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3991, allocations: 0 / 409.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3991, allocations: 0 / 409.5 MB, free: 13.94 MB / 298.7 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.006738/0.4059, allocations: 1.115 MB / 410.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.4059, allocations: 8.031 kB / 410.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.239e-05/0.406, allocations: 46.55 kB / 410.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006479/0.4067, allocations: 67.72 kB / 410.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.407, allocations: 218.8 kB / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.407, allocations: 8.281 kB / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.4071, allocations: 19.94 kB / 410.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.409, allocations: 386.5 kB / 411.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.409, allocations: 8 kB / 411.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.152e-05/0.4091, allocations: 4 kB / 411.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.4091, allocations: 4 kB / 411.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/0.4114, allocations: 372.2 kB / 411.7 MB, free: 11.58 MB / 298.7 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.001674/0.4131, allocations: 1.188 MB / 412.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.4143, allocations: 288.3 kB / 413.2 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1687/0.5831, allocations: 47.88 MB / 461 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/0.5832, allocations: 42.73 kB / 461.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.645e-06/0.5832, allocations: 0 / 461.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.01161/0.5948, allocations: 1.608 MB / 462.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.5949, allocations: 114.7 kB / 462.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.5951, allocations: 121.7 kB / 462.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.916e-05/0.5951, allocations: 29.7 kB / 463 MB, free: 2.473 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.5953, allocations: 175 kB / 463.1 MB, free: 2.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.5954, allocations: 122.3 kB / 463.2 MB, free: 2.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.5955, allocations: 4 kB / 463.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.5956, allocations: 326.8 kB / 463.6 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006955/0.5963, allocations: 135.7 kB / 463.7 MB, free: 1.715 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007535/0.5971, allocations: 206.9 kB / 463.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007452/0.5979, allocations: 155.8 kB / 464.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5979, allocations: 4 kB / 464.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001933/0.5998, allocations: 437.9 kB / 464.5 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.5999, allocations: 7.938 kB / 464.5 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.5999, allocations: 4 kB / 464.5 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003809/0.6003, allocations: 40.77 kB / 464.5 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008325/0.6011, allocations: 88.03 kB / 464.6 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00055/0.6017, allocations: 0.5524 MB / 465.2 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.6022, allocations: 23.97 kB / 465.2 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.6023, allocations: 23.89 kB / 465.2 MB, free: 132 kB / 346.7 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.0002472/0.6026, allocations: 141.9 kB / 465.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.6027, allocations: 19.81 kB / 465.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/0.6064, allocations: 1.458 MB / 466.8 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-05/0.6065, allocations: 19.97 kB / 466.9 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.6065, allocations: 4 kB / 466.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.6065, allocations: 4.031 kB / 466.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004918/0.6115, allocations: 1.991 MB / 468.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.6115, allocations: 0 / 468.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008229/0.6123, allocations: 79.88 kB / 468.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005764/0.6129, allocations: 76.81 kB / 469 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.613, allocations: 19.98 kB / 469 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005474/0.6136, allocations: 0.5835 MB / 469.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.6136, allocations: 4.031 kB / 469.6 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.6174, allocations: 1.769 MB / 471.4 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.6177, allocations: 136.3 kB / 471.5 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.092e-05/0.6177, allocations: 8 kB / 471.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000629/0.6184, allocations: 28.02 kB / 471.6 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.6185, allocations: 35.91 kB / 471.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.196e-05/0.6186, allocations: 16 kB / 471.6 MB, free: 9.531 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.659e-05/0.6187, allocations: 91.27 kB / 471.7 MB, free: 9.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6187, allocations: 3.938 kB / 471.7 MB, free: 9.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003616/0.6223, allocations: 0.9566 MB / 472.7 MB, free: 8.48 MB / 362.7 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.01169/0.6341, allocations: 3.743 MB / 476.4 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.6363, allocations: 0.6081 MB / 477 MB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.6363, allocations: 0 / 477 MB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.6378, allocations: 0.513 MB / 477.5 MB, free: 3.559 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009761/0.6388, allocations: 76.02 kB / 477.6 MB, free: 3.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009693/0.6485, allocations: 3.785 MB / 481.4 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.6491, allocations: 0.8217 MB / 482.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.6495, allocations: 135.4 kB / 482.3 MB, free: 14.62 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6496, allocations: 0 / 482.3 MB, free: 14.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.134/4.784, allocations: 25.87 MB / 0.4963 GB, free: 4.711 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat