Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.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: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00286/0.00286, allocations: 175.3 kB / 8.15 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.2 MB / 213.7 MB, free: 13.89 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.001276/0.001276, allocations: 85.75 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/8.957e-06, allocations: 0 / 314.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.661/5.934, allocations: 2.795 GB / 3.149 GB, free: 12.74 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/5.935, allocations: 71.97 kB / 3.149 GB, free: 12.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.678/8.613, allocations: 0.5455 GB / 3.694 GB, free: 35.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001636/8.613, allocations: 48.23 kB / 3.694 GB, free: 35.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01345/8.627, allocations: 2.798 MB / 3.697 GB, free: 34.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/8.627, allocations: 12.69 kB / 3.697 GB, free: 34.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00754/8.634, allocations: 0.6341 MB / 3.698 GB, free: 34.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005384/8.64, allocations: 1.437 MB / 3.699 GB, free: 34.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/8.64, allocations: 84.02 kB / 3.699 GB, free: 34.02 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003201/8.64, allocations: 85.56 kB / 3.699 GB, free: 34.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005208/8.645, allocations: 2.032 MB / 3.701 GB, free: 34.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004908/8.65, allocations: 2.223 MB / 3.704 GB, free: 33.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.95e-05/8.65, allocations: 18.19 kB / 3.704 GB, free: 33.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/8.651, allocations: 3.75 kB / 3.704 GB, free: 33.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/8.651, allocations: 137.2 kB / 3.704 GB, free: 33.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.277/8.928, allocations: 83.63 MB / 3.785 GB, free: 12.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/8.93, allocations: 0.8073 MB / 3.786 GB, free: 12.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/8.932, allocations: 0.729 MB / 3.787 GB, free: 12.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02986/8.962, allocations: 8.234 MB / 3.795 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.969e-05/8.962, allocations: 43.81 kB / 3.795 GB, free: 23.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 4.388e-06/8.962, allocations: 0 / 3.795 GB, free: 23.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.02018/8.982, allocations: 5.161 MB / 3.8 GB, free: 22.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.215e-05/8.982, allocations: 143.3 kB / 3.8 GB, free: 22.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/8.984, allocations: 0.8045 MB / 3.801 GB, free: 22.44 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/8.984, allocations: 28.98 kB / 3.801 GB, free: 22.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/8.984, allocations: 0.6078 MB / 3.802 GB, free: 21.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004228/8.985, allocations: 420.5 kB / 3.802 GB, free: 21.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/8.985, allocations: 3.875 kB / 3.802 GB, free: 21.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000192/8.985, allocations: 373.4 kB / 3.802 GB, free: 21.37 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001936/8.987, allocations: 0.8327 MB / 3.803 GB, free: 21.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002146/8.989, allocations: 1.204 MB / 3.804 GB, free: 20.96 MB / 490.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.03426/9.024, allocations: 5.832 MB / 3.81 GB, free: 20.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/9.024, allocations: 3.812 kB / 3.81 GB, free: 20.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.02665/9.05, allocations: 4.691 MB / 3.815 GB, free: 19.94 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001464/9.052, allocations: 4.01 MB / 3.818 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.968e-05/9.052, allocations: 12 kB / 3.818 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/9.054, allocations: 488 kB / 3.819 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/9.057, allocations: 384.2 kB / 3.819 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003851/9.061, allocations: 3.049 MB / 3.822 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/9.064, allocations: 173 kB / 3.822 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/9.064, allocations: 77.95 kB / 3.823 GB, free: 12.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/9.064, allocations: 4 kB / 3.823 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0238/9.088, allocations: 4.076 MB / 3.827 GB, free: 9.914 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/9.088, allocations: 12 kB / 3.827 GB, free: 9.902 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/9.09, allocations: 493.5 kB / 3.827 GB, free: 9.617 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002844/9.093, allocations: 381.1 kB / 3.827 GB, free: 9.332 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/9.097, allocations: 3.046 MB / 3.83 GB, free: 6.695 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/9.099, allocations: 173.8 kB / 3.83 GB, free: 6.566 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002075/9.099, allocations: 73.34 kB / 3.831 GB, free: 6.512 MB / 490.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: annulus_pipe.mediums[1].p = 1000000.0 circular_pipe.mediums[1].p = 1000000.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 11 (massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,boundary.medium.phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 171 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005617/9.1, allocations: 86.38 kB / 3.831 GB, free: 6.449 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002086/9.102, allocations: 492.3 kB / 3.831 GB, free: 6.16 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/9.112, allocations: 4.847 MB / 3.836 GB, free: 3.418 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.142e-05/9.112, allocations: 48.34 kB / 3.836 GB, free: 3.395 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/9.112, allocations: 0 / 3.836 GB, free: 3.395 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008689/9.121, allocations: 4.305 MB / 3.84 GB, free: 0.6797 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2192/9.34, allocations: 7.497 MB / 3.847 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/9.34, allocations: 2.656 kB / 3.847 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/9.342, allocations: 245.3 kB / 3.848 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002698/9.345, allocations: 0.5281 MB / 3.848 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001712/9.345, allocations: 35.61 kB / 3.848 GB, free: 119.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/9.349, allocations: 3.125 MB / 3.851 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/9.349, allocations: 3.938 kB / 3.851 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01215/9.361, allocations: 5.617 MB / 3.857 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/9.362, allocations: 477.5 kB / 3.857 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003847/9.363, allocations: 21.25 kB / 3.857 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002114/9.365, allocations: 138.1 kB / 3.857 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003626/9.365, allocations: 131.8 kB / 3.857 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/9.365, allocations: 56.09 kB / 3.858 GB, free: 116.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001288/9.367, allocations: 0.6456 MB / 3.858 GB, free: 116.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009446/9.376, allocations: 2.106 MB / 3.86 GB, free: 116.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 26 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01371/9.39, allocations: 2.42 MB / 3.863 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009683/9.4, allocations: 4.006 MB / 3.866 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/9.4, allocations: 0 / 3.866 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004689/9.404, allocations: 2.332 MB / 3.869 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005265/9.41, allocations: 0.5506 MB / 3.869 GB, free: 116.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/9.421, allocations: 4.419 MB / 3.874 GB, free: 115.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002439/9.423, allocations: 1.841 MB / 3.875 GB, free: 114.6 MB / 490.7 MB Notification: Performance of SimCode: time 2.034e-06/9.423, allocations: 0 / 3.875 GB, free: 114.6 MB / 490.7 MB Notification: Performance of Templates: time 0.146/9.569, allocations: 82.61 MB / 3.956 GB, free: 109.1 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/NonCircularPipes/NonCircularPipes.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches