Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",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 trunk/package.mo): time 0.00107/0.00107, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 90.38 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1673/0.1673, allocations: 45.14 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2046/0.3719, allocations: 69.38 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.4643, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.068/5.533, allocations: 3.449 GB / 3.953 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/5.533, allocations: 91.77 kB / 3.953 GB, free: 110.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 5.442/10.98, allocations: 1.571 GB / 5.524 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/10.98, allocations: 8.062 kB / 5.524 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002333/10.98, allocations: 398.2 kB / 5.525 GB, free: 28 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005105/10.98, allocations: 2.116 MB / 5.527 GB, free: 27.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/10.98, allocations: 410.9 kB / 5.527 GB, free: 27.16 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006031/10.98, allocations: 166.2 kB / 5.527 GB, free: 27.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007505/10.99, allocations: 4.47 MB / 5.532 GB, free: 27.14 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006627/11, allocations: 4.493 MB / 5.536 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.926e-05/11, allocations: 17.75 kB / 5.536 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003585/11, allocations: 8.188 kB / 5.536 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002281/11, allocations: 279.4 kB / 5.536 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03089/11.03, allocations: 20.46 MB / 5.556 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/11.03, allocations: 1.792 MB / 5.558 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/11.03, allocations: 1.526 MB / 5.559 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002348/11.04, allocations: 3.315 MB / 5.563 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/11.04, allocations: 68.48 kB / 5.563 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 4.678e-06/11.04, allocations: 0 / 5.563 GB, free: 10.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.05237/11.09, allocations: 13.2 MB / 5.576 GB, free: 4.57 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.249e-05/11.09, allocations: 245.8 kB / 5.576 GB, free: 4.285 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/11.09, allocations: 1.708 MB / 5.577 GB, free: 2.723 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003022/11.09, allocations: 33.7 kB / 5.578 GB, free: 2.684 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/11.09, allocations: 1.213 MB / 5.579 GB, free: 1.598 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007396/11.09, allocations: 0.9108 MB / 5.58 GB, free: 0.7656 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/11.09, allocations: 3.938 kB / 5.58 GB, free: 0.7617 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001752/11.09, allocations: 469.4 kB / 5.58 GB, free: 352 kB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006787/11.1, allocations: 2.181 MB / 5.582 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003896/11.1, allocations: 3 MB / 5.585 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01396/11.12, allocations: 4.015 MB / 5.589 GB, free: 9.414 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.645e-05/11.12, allocations: 12 kB / 5.589 GB, free: 9.402 MB / 0.6355 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.02136/11.14, allocations: 7.029 MB / 5.596 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.3581/11.5, allocations: 14.76 MB / 5.61 GB, free: 70.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/11.5, allocations: 35.84 kB / 5.61 GB, free: 70.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003223/11.5, allocations: 0.7312 MB / 5.611 GB, free: 70.13 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004546/11.51, allocations: 0.9014 MB / 5.612 GB, free: 70.13 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002703/11.51, allocations: 2.603 MB / 5.615 GB, free: 68.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005146/11.51, allocations: 306.1 kB / 5.615 GB, free: 68.59 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009495/11.51, allocations: 242.5 kB / 5.615 GB, free: 68.59 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/11.51, allocations: 3.938 kB / 5.615 GB, free: 68.59 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01884/11.53, allocations: 6.468 MB / 5.621 GB, free: 68.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-05/11.53, allocations: 35.41 kB / 5.621 GB, free: 68.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002824/11.54, allocations: 0.7314 MB / 5.622 GB, free: 68.46 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/11.54, allocations: 0.8916 MB / 5.623 GB, free: 68.46 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/11.54, allocations: 2.596 MB / 5.625 GB, free: 66.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004504/11.55, allocations: 307.1 kB / 5.626 GB, free: 66.91 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006624/11.55, allocations: 238.2 kB / 5.626 GB, free: 66.91 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (481): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001074/11.55, allocations: 235.3 kB / 5.626 GB, free: 66.8 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006645/11.55, allocations: 271.6 kB / 5.627 GB, free: 66.8 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01499/11.56, allocations: 6.843 MB / 5.633 GB, free: 66.55 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-05/11.56, allocations: 40.34 kB / 5.633 GB, free: 66.55 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/11.56, allocations: 0 / 5.633 GB, free: 66.55 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.738e-05/11.57, allocations: 15.61 kB / 5.633 GB, free: 66.55 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01923/11.58, allocations: 8.487 MB / 5.642 GB, free: 66.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/11.58, allocations: 6.234 kB / 5.642 GB, free: 66.09 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002508/11.59, allocations: 0.5267 MB / 5.642 GB, free: 66.09 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003965/11.59, allocations: 0.9197 MB / 5.643 GB, free: 66.07 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005252/11.59, allocations: 74.14 kB / 5.643 GB, free: 66.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002414/11.59, allocations: 2.501 MB / 5.645 GB, free: 64.52 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/11.59, allocations: 5.906 kB / 5.645 GB, free: 64.52 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01485/11.61, allocations: 7.128 MB / 5.652 GB, free: 64.04 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01871/11.63, allocations: 10.52 MB / 5.663 GB, free: 63.06 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002401/11.63, allocations: 0.8404 MB / 5.664 GB, free: 62.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006348/11.63, allocations: 25.28 kB / 5.664 GB, free: 62.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/11.63, allocations: 231.7 kB / 5.664 GB, free: 62.81 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/11.63, allocations: 183.2 kB / 5.664 GB, free: 62.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003878/11.63, allocations: 147.2 kB / 5.664 GB, free: 62.8 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.00191/11.64, allocations: 1.289 MB / 5.665 GB, free: 62.66 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.02124/11.66, allocations: 4.908 MB / 5.67 GB, free: 62.66 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01427/11.67, allocations: 4.962 MB / 5.675 GB, free: 62.22 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01416/11.69, allocations: 7.443 MB / 5.682 GB, free: 61.88 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/11.69, allocations: 3.469 kB / 5.682 GB, free: 61.88 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.00391/11.69, allocations: 2.098 MB / 5.684 GB, free: 61.87 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005755/11.7, allocations: 1.03 MB / 5.685 GB, free: 61.84 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/11.71, allocations: 6.429 MB / 5.692 GB, free: 60.8 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003477/11.71, allocations: 2.709 MB / 5.694 GB, free: 60.02 MB / 0.6355 GB Notification: Performance of SimCode: time 1.733e-06/11.71, allocations: 1.969 kB / 5.694 GB, free: 60.02 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1)