Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001668/0.001668, allocations: 172 kB / 8.148 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 100.4 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2746/0.2746, allocations: 43.51 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.658e-06/9.949e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2989, allocations: 58.85 MB / 476.5 MB, free: 4.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.488/6.787, allocations: 2.824 GB / 3.29 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/6.788, allocations: 78.56 kB / 3.29 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.766/9.553, allocations: 0.5732 GB / 3.863 GB, free: 43.81 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002446/9.554, allocations: 42.8 kB / 3.863 GB, free: 43.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01414/9.568, allocations: 2.87 MB / 3.866 GB, free: 42.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/9.568, allocations: 11.44 kB / 3.866 GB, free: 42.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006446/9.574, allocations: 0.5653 MB / 3.866 GB, free: 42.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005897/9.58, allocations: 1.434 MB / 3.868 GB, free: 41.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/9.58, allocations: 58.98 kB / 3.868 GB, free: 41.91 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005116/9.581, allocations: 81.78 kB / 3.868 GB, free: 41.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004875/9.586, allocations: 1.61 MB / 3.869 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005181/9.591, allocations: 1.822 MB / 3.871 GB, free: 41.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.593e-05/9.591, allocations: 0 / 3.871 GB, free: 41.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002439/9.591, allocations: 3.594 kB / 3.871 GB, free: 41.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/9.592, allocations: 109.7 kB / 3.871 GB, free: 41.51 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3084/9.9, allocations: 89.11 MB / 3.958 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/9.902, allocations: 0.687 MB / 3.959 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/9.903, allocations: 0.589 MB / 3.959 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06155/9.965, allocations: 16.91 MB / 3.976 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001895/9.967, allocations: 0.7331 MB / 3.977 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=88): time 4.418e-06/9.967, allocations: 3.938 kB / 3.977 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of matching and sorting (n=96): time 0.02133/9.988, allocations: 4.856 MB / 3.981 GB, free: 21.04 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002339/9.989, allocations: 383.2 kB / 3.982 GB, free: 20.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/9.991, allocations: 0.8187 MB / 3.983 GB, free: 20.44 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003714/9.991, allocations: 28.02 kB / 3.983 GB, free: 20.41 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005239/9.992, allocations: 0.5141 MB / 3.983 GB, free: 20.03 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005583/9.992, allocations: 318.2 kB / 3.983 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/9.992, allocations: 0.9062 kB / 3.983 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000232/9.993, allocations: 365.3 kB / 3.984 GB, free: 19.51 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/9.995, allocations: 0.6856 MB / 3.984 GB, free: 19.5 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002253/9.997, allocations: 0.9651 MB / 3.985 GB, free: 19.18 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/10.01, allocations: 1.922 MB / 3.987 GB, free: 19.14 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.052e-05/10.01, allocations: 2.219 kB / 3.987 GB, free: 19.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.02094/10.03, allocations: 3.335 MB / 3.991 GB, free: 19.02 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00115/10.03, allocations: 2.7 MB / 3.993 GB, free: 16.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.037e-05/10.03, allocations: 11.86 kB / 3.993 GB, free: 16.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006633/10.03, allocations: 124.6 kB / 3.993 GB, free: 16.17 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/10.04, allocations: 327.1 kB / 3.994 GB, free: 16.17 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/10.04, allocations: 1.28 MB / 3.995 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/10.04, allocations: 155.8 kB / 3.995 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/10.04, allocations: 63.72 kB / 3.995 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/10.04, allocations: 3.906 kB / 3.995 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01715/10.06, allocations: 2.723 MB / 3.998 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-05/10.06, allocations: 8.688 kB / 3.998 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005479/10.06, allocations: 126.2 kB / 3.998 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002794/10.06, allocations: 324.6 kB / 3.998 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/10.06, allocations: 1.283 MB / 3.999 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002266/10.07, allocations: 143.8 kB / 4 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002579/10.07, allocations: 65.88 kB / 4 GB, free: 13.95 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005952/10.07, allocations: 104.5 kB / 4 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001992/10.07, allocations: 432.5 kB / 4 GB, free: 13.82 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00998/10.08, allocations: 3.73 MB / 4.004 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.267e-05/10.08, allocations: 30.55 kB / 4.004 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/10.08, allocations: 1.219 kB / 4.004 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006865/10.09, allocations: 2.931 MB / 4.007 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/10.1, allocations: 5.508 MB / 4.012 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/10.1, allocations: 128 / 4.012 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/10.1, allocations: 184.6 kB / 4.012 GB, free: 25.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008123/10.1, allocations: 170.6 kB / 4.012 GB, free: 25.45 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/10.1, allocations: 32.66 kB / 4.012 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/10.1, allocations: 1.368 MB / 4.014 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/10.1, allocations: 4.031 kB / 4.014 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009648/10.11, allocations: 4.081 MB / 4.018 GB, free: 21.82 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/10.11, allocations: 0.5051 MB / 4.018 GB, free: 21.48 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000502/10.12, allocations: 19.56 kB / 4.018 GB, free: 21.47 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/10.12, allocations: 98.78 kB / 4.018 GB, free: 21.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/10.12, allocations: 70.86 kB / 4.018 GB, free: 21.37 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/10.12, allocations: 46.92 kB / 4.018 GB, free: 21.34 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001813/10.12, allocations: 0.8775 MB / 4.019 GB, free: 20.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01055/10.13, allocations: 2.166 MB / 4.021 GB, free: 18.78 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * 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 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01525/10.15, allocations: 2.574 MB / 4.024 GB, free: 16.79 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00793/10.15, allocations: 3.171 MB / 4.027 GB, free: 14.95 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/10.15, allocations: 0 / 4.027 GB, free: 14.95 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003133/10.16, allocations: 1.565 MB / 4.029 GB, free: 14.18 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005219/10.16, allocations: 477.7 kB / 4.029 GB, free: 13.91 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/10.17, allocations: 3.52 MB / 4.032 GB, free: 11.42 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002836/10.18, allocations: 1.708 MB / 4.034 GB, free: 10.07 MB / 0.573 GB Notification: Performance of SimCode: time 2.114e-06/10.18, allocations: 0 / 4.034 GB, free: 10.07 MB / 0.573 GB Notification: Performance of Templates: time 0.3538/10.53, allocations: 65.11 MB / 4.098 GB, free: 140.3 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches