Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.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.TestComponents.Fittings.TestJunctionIdeal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|pipe3.port_b.m_flow|pipe3.port_b.p|pipe3.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.y|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|pipe3.port_b.m_flow|pipe3.port_b.p|pipe3.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal") [: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.002466/0.002472, allocations: 172.3 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.8/1.8, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001282/0.001282, allocations: 88.23 kB / 261.8 MB, free: 13.6 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.2651/0.2651, allocations: 43.5 MB / 353.2 MB, free: 2.008 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.002e-05/1.027e-05, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2974, allocations: 58.85 MB / 476.6 MB, free: 5.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.389/1.687, allocations: 0.5982 GB / 1.064 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003296/1.687, allocations: 87 kB / 1.064 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.683/3.371, allocations: 346.8 MB / 1.402 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001292/3.371, allocations: 28.83 kB / 1.402 GB, free: 64.09 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.006491/3.377, allocations: 1.575 MB / 1.404 GB, free: 63.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/3.377, allocations: 7.094 kB / 1.404 GB, free: 63.64 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002194/3.38, allocations: 194.3 kB / 1.404 GB, free: 63.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/3.383, allocations: 0.8065 MB / 1.405 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/3.383, allocations: 31.25 kB / 1.405 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/3.383, allocations: 34.12 kB / 1.405 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002803/3.386, allocations: 1.005 MB / 1.406 GB, free: 63.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/3.389, allocations: 1.063 MB / 1.407 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/3.389, allocations: 0 / 1.407 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/3.389, allocations: 3.969 kB / 1.407 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/3.389, allocations: 85.88 kB / 1.407 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01243/3.402, allocations: 4.364 MB / 1.411 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/3.404, allocations: 0.6322 MB / 1.412 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007517/3.405, allocations: 308.2 kB / 1.412 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004246/3.405, allocations: 321.9 kB / 1.413 GB, free: 61.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/3.405, allocations: 42.97 kB / 1.413 GB, free: 61.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/3.405, allocations: 2.719 kB / 1.413 GB, free: 61.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.004247/3.409, allocations: 0.9747 MB / 1.414 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/3.409, allocations: 213.8 kB / 1.414 GB, free: 60.69 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/3.411, allocations: 0.6571 MB / 1.414 GB, free: 60.56 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001949/3.411, allocations: 28.11 kB / 1.414 GB, free: 60.53 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/3.411, allocations: 396.1 kB / 1.415 GB, free: 60.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/3.412, allocations: 174 kB / 1.415 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/3.412, allocations: 0 / 1.415 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.272e-05/3.412, allocations: 340.1 kB / 1.415 GB, free: 59.87 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009928/3.413, allocations: 374.6 kB / 1.416 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/3.414, allocations: 0.5563 MB / 1.416 GB, free: 59.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01712/3.431, allocations: 1.974 MB / 1.418 GB, free: 59.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/3.431, allocations: 2.406 kB / 1.418 GB, free: 59.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0195/3.451, allocations: 2.679 MB / 1.421 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003806/3.451, allocations: 1.745 MB / 1.422 GB, free: 57.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/3.451, allocations: 3.469 kB / 1.422 GB, free: 57.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006551/3.458, allocations: 0.6369 MB / 1.423 GB, free: 57.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/3.459, allocations: 159.6 kB / 1.423 GB, free: 57.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/3.463, allocations: 1.349 MB / 1.425 GB, free: 57.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/3.464, allocations: 75.98 kB / 1.425 GB, free: 57.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/3.464, allocations: 72.55 kB / 1.425 GB, free: 57.22 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/3.464, allocations: 3.938 kB / 1.425 GB, free: 57.22 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01915/3.484, allocations: 2.447 MB / 1.427 GB, free: 57.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/3.484, allocations: 6.844 kB / 1.427 GB, free: 57.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/3.485, allocations: 142 kB / 1.427 GB, free: 57.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/3.486, allocations: 190.8 kB / 1.427 GB, free: 57.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003855/3.49, allocations: 1.964 MB / 1.429 GB, free: 55.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/3.492, allocations: 74.44 kB / 1.429 GB, free: 55.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/3.492, allocations: 69.95 kB / 1.429 GB, free: 55.96 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003426/3.492, allocations: 54.59 kB / 1.43 GB, free: 55.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003444/3.493, allocations: 84.28 kB / 1.43 GB, free: 55.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004631/3.497, allocations: 1.134 MB / 1.431 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/3.497, allocations: 7.406 kB / 1.431 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/3.497, allocations: 3.438 kB / 1.431 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/3.497, allocations: 3.469 kB / 1.431 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005438/3.503, allocations: 1.779 MB / 1.432 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/3.503, allocations: 7.469 kB / 1.432 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000582/3.504, allocations: 59.03 kB / 1.433 GB, free: 55.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/3.507, allocations: 491.6 kB / 1.433 GB, free: 55.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/3.507, allocations: 7.812 kB / 1.433 GB, free: 55.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00306/3.51, allocations: 1.316 MB / 1.434 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/3.511, allocations: 3.906 kB / 1.434 GB, free: 54.93 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003644/3.514, allocations: 1.044 MB / 1.435 GB, free: 54.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005392/3.515, allocations: 194.2 kB / 1.435 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/3.515, allocations: 10.36 kB / 1.436 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/3.516, allocations: 38.45 kB / 1.436 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/3.517, allocations: 34.38 kB / 1.436 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/3.517, allocations: 34.38 kB / 1.436 GB, free: 54.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0009736/3.518, allocations: 0.4964 MB / 1.436 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004937/3.523, allocations: 1.185 MB / 1.437 GB, free: 54.28 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.006173/3.529, allocations: 2.003 MB / 1.439 GB, free: 53.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004181/3.533, allocations: 1.41 MB / 1.441 GB, free: 53.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/3.533, allocations: 0 / 1.441 GB, free: 53.85 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009339/3.534, allocations: 336.7 kB / 1.441 GB, free: 53.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003697/3.538, allocations: 416.6 kB / 1.441 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/3.542, allocations: 1.242 MB / 1.443 GB, free: 53.48 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/3.543, allocations: 1.193 MB / 1.444 GB, free: 52.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.122e-06/3.543, allocations: 0 / 1.444 GB, free: 52.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.07353/3.617, allocations: 29.73 MB / 1.473 GB, free: 51.75 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestJunctionIdeal/TestJunctionIdeal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionIdeal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches