Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume",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.001633/0.001632, allocations: 185.7 kB / 16.41 MB, free: 5.723 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.038/2.038, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001171/0.001171, allocations: 101.5 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5193/0.5193, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00049/0.0004901, allocations: 12 kB / 431.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1355, allocations: 58.84 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.644/8.78, allocations: 2.765 GB / 3.243 GB, free: 47.26 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003564/8.78, allocations: 87.27 kB / 3.244 GB, free: 47.21 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 1.987/10.77, allocations: 358 MB / 3.593 GB, free: 49.93 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.555e-06/10.77, allocations: 0 / 3.593 GB, free: 49.93 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 6.362e-05/10.77, allocations: 23.19 kB / 3.593 GB, free: 49.93 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.008612/10.78, allocations: 1.72 MB / 3.595 GB, free: 48.96 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/10.78, allocations: 7.938 kB / 3.595 GB, free: 48.96 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003873/10.78, allocations: 111.6 kB / 3.595 GB, free: 48.89 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005401/10.78, allocations: 434.5 kB / 3.595 GB, free: 48.83 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/10.78, allocations: 0.5659 MB / 3.596 GB, free: 48.46 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/10.78, allocations: 115.4 kB / 3.596 GB, free: 48.38 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/10.78, allocations: 58.91 kB / 3.596 GB, free: 48.36 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00441/10.79, allocations: 1.149 MB / 3.597 GB, free: 47.89 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.684e-05/10.79, allocations: 11.77 kB / 3.597 GB, free: 47.88 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/10.79, allocations: 25.75 kB / 3.597 GB, free: 47.87 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-05/10.79, allocations: 35.75 kB / 3.597 GB, free: 47.86 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004589/10.79, allocations: 1.073 MB / 3.598 GB, free: 47.59 MB / 0.4949 GB 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.01008/10.8, allocations: 5.015 MB / 3.603 GB, free: 43.91 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004547/10.81, allocations: 0.9535 MB / 3.604 GB, free: 43.64 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07568/10.88, allocations: 24.09 MB / 3.628 GB, free: 28 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/10.88, allocations: 38.94 kB / 3.628 GB, free: 27.95 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=47): time 3.586e-06/10.88, allocations: 0 / 3.628 GB, free: 27.95 MB / 0.4949 GB Notification: Performance of matching and sorting (n=47): time 0.0112/10.9, allocations: 2.05 MB / 3.63 GB, free: 27.27 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.014e-05/10.9, allocations: 111.2 kB / 3.63 GB, free: 27.14 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/10.9, allocations: 0.5257 MB / 3.63 GB, free: 26.91 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0001087/10.9, allocations: 33.61 kB / 3.63 GB, free: 26.88 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/10.9, allocations: 343.3 kB / 3.631 GB, free: 26.57 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/10.9, allocations: 160.4 kB / 3.631 GB, free: 26.45 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/10.9, allocations: 11.84 kB / 3.631 GB, free: 26.44 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 8.254e-05/10.9, allocations: 329 kB / 3.631 GB, free: 26.12 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/10.9, allocations: 335.9 kB / 3.632 GB, free: 26.02 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/10.9, allocations: 496.2 kB / 3.632 GB, free: 25.72 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/10.9, allocations: 353.5 kB / 3.632 GB, free: 25.59 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/10.9, allocations: 0 / 3.632 GB, free: 25.59 MB / 0.4949 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003666/10.9, allocations: 1.043 MB / 3.633 GB, free: 25.21 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/10.9, allocations: 5.562 kB / 3.633 GB, free: 25.21 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/10.9, allocations: 7.484 kB / 3.633 GB, free: 25.21 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001851/10.91, allocations: 430.9 kB / 3.634 GB, free: 25.11 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009027/10.91, allocations: 131.7 kB / 3.634 GB, free: 25.09 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/10.91, allocations: 1.626 MB / 3.635 GB, free: 23.86 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/10.91, allocations: 122.4 kB / 3.636 GB, free: 23.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.583e-05/10.91, allocations: 29.95 kB / 3.636 GB, free: 23.79 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 9 (Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase,Volume.regularFlow[2],Volume.regularFlow[1],Valve.state_b.phase,Valve.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005727/10.91, allocations: 230.3 kB / 3.636 GB, free: 23.62 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/10.91, allocations: 62.84 kB / 3.636 GB, free: 23.59 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006729/10.92, allocations: 3.313 MB / 3.639 GB, free: 22.13 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.502e-05/10.92, allocations: 44.33 kB / 3.639 GB, free: 22.12 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/10.92, allocations: 7.953 kB / 3.639 GB, free: 22.11 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/10.92, allocations: 0 / 3.639 GB, free: 22.11 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/10.92, allocations: 1.56 MB / 3.641 GB, free: 21.32 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/10.92, allocations: 0 / 3.641 GB, free: 21.32 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006779/10.92, allocations: 91.8 kB / 3.641 GB, free: 21.31 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/10.93, allocations: 0.9014 MB / 3.642 GB, free: 21.08 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/10.93, allocations: 15.47 kB / 3.642 GB, free: 21.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/10.93, allocations: 2.288 MB / 3.644 GB, free: 19.25 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/10.93, allocations: 4.031 kB / 3.644 GB, free: 19.25 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/10.93, allocations: 2.299 MB / 3.646 GB, free: 17.19 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008297/10.93, allocations: 353.7 kB / 3.647 GB, free: 16.86 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/10.94, allocations: 8 kB / 3.647 GB, free: 16.86 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/10.94, allocations: 77.28 kB / 3.647 GB, free: 16.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/10.94, allocations: 64.27 kB / 3.647 GB, free: 16.76 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/10.94, allocations: 27.38 kB / 3.647 GB, free: 16.74 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0009384/10.94, allocations: 0.5054 MB / 3.647 GB, free: 16.3 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.8e-07/10.94, allocations: 4 kB / 3.647 GB, free: 16.3 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006535/10.94, allocations: 1.21 MB / 3.648 GB, free: 15.12 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,Volume.heatTransfer.states[1].phase,Volume.inFlow[1],Volume.inFlow[2],FlowSource.medium.phase,Sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01636/10.96, allocations: 4.129 MB / 3.652 GB, free: 11.56 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00393/10.96, allocations: 1.145 MB / 3.654 GB, free: 10.57 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/10.96, allocations: 0 / 3.654 GB, free: 10.57 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002376/10.97, allocations: 0.8818 MB / 3.654 GB, free: 9.781 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/10.97, allocations: 356 kB / 3.655 GB, free: 9.531 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0186/10.99, allocations: 9.392 MB / 3.664 GB, free: 0.7539 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008364/10.99, allocations: 1.179 MB / 3.665 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008403/10.99, allocations: 398.5 kB / 3.665 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of SimCode: time 1.542e-06/10.99, allocations: 0 / 3.665 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.431/15.42, allocations: 45.69 MB / 3.71 GB, free: 58.15 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestVolume.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestVolume_res.mat does not exist to compare? outputFormat=mat