Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 179.5 kB / 8.523 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.4 MB / 230.3 MB, free: 7.633 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008487/0.0008487, allocations: 87.98 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1596/0.1596, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1872/0.3469, allocations: 68.04 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.4449, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.516/5.961, allocations: 3.552 GB / 4.046 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/5.961, allocations: 89.42 kB / 4.046 GB, free: 19.68 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: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 4.658/10.62, allocations: 1.414 GB / 5.46 GB, free: 24.96 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/10.62, allocations: 13.25 kB / 5.46 GB, free: 24.96 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/10.62, allocations: 277.4 kB / 5.46 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003728/10.63, allocations: 1.452 MB / 5.462 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/10.63, allocations: 67.39 kB / 5.462 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006352/10.63, allocations: 105.8 kB / 5.462 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005184/10.63, allocations: 2.905 MB / 5.465 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005361/10.64, allocations: 2.685 MB / 5.467 GB, free: 24.09 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.105e-05/10.64, allocations: 3.906 kB / 5.467 GB, free: 24.09 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004278/10.64, allocations: 7.375 kB / 5.467 GB, free: 24.09 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/10.64, allocations: 172.1 kB / 5.467 GB, free: 24.08 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01902/10.66, allocations: 11.83 MB / 5.479 GB, free: 18.59 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003195/10.66, allocations: 1.984 MB / 5.481 GB, free: 18.55 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/10.66, allocations: 0.9101 MB / 5.482 GB, free: 18.55 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001632/10.66, allocations: 2.469 MB / 5.484 GB, free: 15.92 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/10.66, allocations: 62.2 kB / 5.484 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 4.047e-06/10.66, allocations: 3.609 kB / 5.484 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=145): time 0.006106/10.67, allocations: 2.452 MB / 5.487 GB, free: 15.71 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/10.67, allocations: 203.4 kB / 5.487 GB, free: 15.49 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/10.67, allocations: 1.149 MB / 5.488 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002329/10.67, allocations: 31.27 kB / 5.488 GB, free: 15.29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/10.67, allocations: 0.7564 MB / 5.489 GB, free: 14.82 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/10.67, allocations: 496.2 kB / 5.489 GB, free: 14.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/10.67, allocations: 3.625 kB / 5.489 GB, free: 14.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001002/10.67, allocations: 379.3 kB / 5.49 GB, free: 14.19 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/10.67, allocations: 1.012 MB / 5.491 GB, free: 14.19 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/10.67, allocations: 1.382 MB / 5.492 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005904/10.68, allocations: 2.116 MB / 5.494 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/10.68, allocations: 4.469 kB / 5.494 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.008842/10.69, allocations: 3.826 MB / 5.498 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005712/10.69, allocations: 3.59 MB / 5.501 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/10.69, allocations: 10.03 kB / 5.501 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/10.69, allocations: 396.7 kB / 5.502 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/10.69, allocations: 438.5 kB / 5.502 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002853/10.7, allocations: 1.967 MB / 5.504 GB, free: 8.746 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/10.7, allocations: 221.3 kB / 5.504 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003539/10.7, allocations: 128.6 kB / 5.504 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/10.7, allocations: 3.656 kB / 5.504 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008433/10.71, allocations: 3.365 MB / 5.508 GB, free: 8.121 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/10.71, allocations: 13.09 kB / 5.508 GB, free: 8.117 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006359/10.71, allocations: 208.9 kB / 5.508 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/10.71, allocations: 492.8 kB / 5.508 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/10.71, allocations: 1.489 MB / 5.51 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/10.71, allocations: 172.2 kB / 5.51 GB, free: 6.781 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003128/10.71, allocations: 125.6 kB / 5.51 GB, free: 6.762 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 222 * Array equations: 0 * Algorithm blocks: 5 * 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 {1 12,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005484/10.71, allocations: 153.8 kB / 5.51 GB, free: 6.617 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/10.71, allocations: 172.9 kB / 5.51 GB, free: 6.531 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008918/10.72, allocations: 4.036 MB / 5.514 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/10.72, allocations: 17.09 kB / 5.514 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/10.72, allocations: 0 / 5.514 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/10.72, allocations: 10.17 kB / 5.514 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/10.73, allocations: 6.634 MB / 5.521 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/10.73, allocations: 9.375 kB / 5.521 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/10.74, allocations: 279.1 kB / 5.521 GB, free: 2.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/10.74, allocations: 397.4 kB / 5.521 GB, free: 2.219 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/10.74, allocations: 38.98 kB / 5.522 GB, free: 2.215 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/10.74, allocations: 2.008 MB / 5.523 GB, free: 0.8828 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/10.74, allocations: 14.56 kB / 5.523 GB, free: 0.8789 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006963/10.75, allocations: 3.403 MB / 5.527 GB, free: 14.07 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008435/10.76, allocations: 4.296 MB / 5.531 GB, free: 9.84 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/10.76, allocations: 328.6 kB / 5.531 GB, free: 9.523 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000614/10.76, allocations: 11.52 kB / 5.531 GB, free: 9.516 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/10.76, allocations: 89.81 kB / 5.531 GB, free: 9.457 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/10.76, allocations: 124.8 kB / 5.532 GB, free: 9.379 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003614/10.76, allocations: 106.6 kB / 5.532 GB, free: 9.293 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001594/10.76, allocations: 0.9061 MB / 5.533 GB, free: 8.473 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01283/10.77, allocations: 3.739 MB / 5.536 GB, free: 4.809 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * 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 9,1 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.009579/10.78, allocations: 4.029 MB / 5.54 GB, free: 1.836 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007339/10.79, allocations: 4.057 MB / 5.544 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/10.79, allocations: 6.547 kB / 5.544 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001673/10.79, allocations: 1.068 MB / 5.545 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/10.8, allocations: 0.7411 MB / 5.546 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006642/10.8, allocations: 3.342 MB / 5.549 GB, free: 9.781 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/10.81, allocations: 1.902 MB / 5.551 GB, free: 8.254 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/10.81, allocations: 0 / 5.551 GB, free: 8.254 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1)