Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001824/0.001824, allocations: 188.5 kB / 7.803 MB, free: 2.488 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.795/1.795, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.001129/0.001129, allocations: 94.06 kB / 261.4 MB, free: 13.55 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.2534/0.2534, allocations: 43.49 MB / 352.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2814/0.5348, allocations: 64.96 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4387/0.9735, allocations: 58.84 MB / 476.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.133/10.11, allocations: 3.612 GB / 4.077 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/10.11, allocations: 83.64 kB / 4.077 GB, free: 134.1 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: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 6.799/16.91, allocations: 1.448 GB / 5.526 GB, free: 33.95 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/16.91, allocations: 8.156 kB / 5.526 GB, free: 33.95 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002683/16.91, allocations: 279 kB / 5.526 GB, free: 33.83 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006011/16.91, allocations: 1.456 MB / 5.527 GB, free: 33.43 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/16.91, allocations: 64.09 kB / 5.527 GB, free: 33.43 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/16.92, allocations: 103.8 kB / 5.527 GB, free: 33.43 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007217/16.92, allocations: 2.931 MB / 5.53 GB, free: 33.43 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008709/16.93, allocations: 2.702 MB / 5.533 GB, free: 33.15 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.222e-05/16.93, allocations: 0 / 5.533 GB, free: 33.15 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009292/16.93, allocations: 11.27 kB / 5.533 GB, free: 33.14 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000253/16.93, allocations: 169.6 kB / 5.533 GB, free: 33.14 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02848/16.96, allocations: 11.81 MB / 5.545 GB, free: 27.8 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004564/16.97, allocations: 1.998 MB / 5.547 GB, free: 27.77 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001816/16.97, allocations: 0.9198 MB / 5.547 GB, free: 27.75 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002489/16.97, allocations: 2.465 MB / 5.55 GB, free: 25.22 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.681e-05/16.97, allocations: 63.09 kB / 5.55 GB, free: 25.18 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 5.991e-06/16.97, allocations: 3.062 kB / 5.55 GB, free: 25.18 MB / 0.5886 GB Notification: Performance of matching and sorting (n=145): time 0.009525/16.98, allocations: 2.509 MB / 5.552 GB, free: 25.02 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/16.98, allocations: 198.7 kB / 5.553 GB, free: 24.8 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003273/16.98, allocations: 1.15 MB / 5.554 GB, free: 24.62 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004445/16.98, allocations: 32.11 kB / 5.554 GB, free: 24.59 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007451/16.99, allocations: 0.756 MB / 5.554 GB, free: 24.12 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007467/16.99, allocations: 490.7 kB / 5.555 GB, free: 23.8 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003232/16.99, allocations: 2.938 kB / 5.555 GB, free: 23.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002054/16.99, allocations: 381.7 kB / 5.555 GB, free: 23.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/16.99, allocations: 1.023 MB / 5.556 GB, free: 23.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/16.99, allocations: 1.383 MB / 5.558 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01669/17.01, allocations: 3.506 MB / 5.561 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.574e-05/17.01, allocations: 2.969 kB / 5.561 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.02432/17.03, allocations: 5.253 MB / 5.566 GB, free: 22.92 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001077/17.03, allocations: 3.592 MB / 5.57 GB, free: 19.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.398e-05/17.03, allocations: 6.562 kB / 5.57 GB, free: 19.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/17.03, allocations: 407.8 kB / 5.57 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/17.04, allocations: 449.2 kB / 5.571 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004248/17.04, allocations: 2.002 MB / 5.573 GB, free: 18.13 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004608/17.05, allocations: 219.2 kB / 5.573 GB, free: 18.03 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/17.05, allocations: 153 kB / 5.573 GB, free: 18.03 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/17.05, allocations: 6.562 kB / 5.573 GB, free: 18.03 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02335/17.07, allocations: 4.782 MB / 5.578 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-05/17.07, allocations: 9.25 kB / 5.578 GB, free: 17.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007926/17.07, allocations: 231.6 kB / 5.578 GB, free: 17.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003064/17.07, allocations: 0.4949 MB / 5.578 GB, free: 17.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/17.08, allocations: 1.517 MB / 5.58 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00348/17.08, allocations: 175.3 kB / 5.58 GB, free: 16.84 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008936/17.08, allocations: 150 kB / 5.58 GB, free: 16.84 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.001401/17.08, allocations: 147.1 kB / 5.58 GB, free: 16.73 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/17.08, allocations: 173.6 kB / 5.58 GB, free: 16.64 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/17.1, allocations: 3.818 MB / 5.584 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/17.1, allocations: 24.03 kB / 5.584 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/17.1, allocations: 0 / 5.584 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/17.1, allocations: 7.172 kB / 5.584 GB, free: 16.37 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/17.11, allocations: 6.721 MB / 5.591 GB, free: 14.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.3e-05/17.11, allocations: 7.906 kB / 5.591 GB, free: 14.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/17.12, allocations: 283.7 kB / 5.591 GB, free: 14.96 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/17.12, allocations: 410.9 kB / 5.591 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003478/17.12, allocations: 41.45 kB / 5.591 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003935/17.12, allocations: 2.059 MB / 5.593 GB, free: 13.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.332e-05/17.12, allocations: 13.84 kB / 5.593 GB, free: 13.9 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01035/17.13, allocations: 3.492 MB / 5.597 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01124/17.14, allocations: 4.398 MB / 5.601 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/17.15, allocations: 326.6 kB / 5.601 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001051/17.15, allocations: 18.41 kB / 5.601 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/17.15, allocations: 87.39 kB / 5.602 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/17.15, allocations: 133 kB / 5.602 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004758/17.15, allocations: 125.3 kB / 5.602 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002134/17.15, allocations: 0.9081 MB / 5.603 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01997/17.17, allocations: 4.071 MB / 5.607 GB, free: 9.938 MB / 0.5886 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.01801/17.19, allocations: 4.574 MB / 5.611 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01196/17.2, allocations: 4.037 MB / 5.615 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.546e-05/17.2, allocations: 3.797 kB / 5.615 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002784/17.2, allocations: 1.071 MB / 5.616 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005586/17.21, allocations: 0.741 MB / 5.617 GB, free: 8.422 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/17.22, allocations: 3.347 MB / 5.62 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003678/17.23, allocations: 1.946 MB / 5.622 GB, free: 6.766 MB / 0.5886 GB Notification: Performance of SimCode: time 1.663e-06/17.23, allocations: 1.781 kB / 5.622 GB, free: 6.766 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1)