Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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.Sources.TestSources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001046/0.001046, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.155/1.155, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009758/0.000976, allocations: 93.88 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1672/0.1672, allocations: 45.13 MB / 383.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2015/0.3688, allocations: 69.38 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08248/0.4513, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.036/5.487, allocations: 3.546 GB / 4.05 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/5.487, allocations: 87.78 kB / 4.05 GB, free: 23.18 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: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 4.736/10.22, allocations: 1.395 GB / 5.445 GB, free: 30.29 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/10.22, allocations: 7.406 kB / 5.445 GB, free: 30.29 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/10.23, allocations: 285.6 kB / 5.445 GB, free: 30.17 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/10.23, allocations: 1.446 MB / 5.447 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.787e-05/10.23, allocations: 63.09 kB / 5.447 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/10.23, allocations: 109.3 kB / 5.447 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004257/10.23, allocations: 2.909 MB / 5.45 GB, free: 29.77 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00372/10.24, allocations: 2.673 MB / 5.452 GB, free: 29.49 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.839e-05/10.24, allocations: 9.469 kB / 5.452 GB, free: 29.49 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/10.24, allocations: 8.438 kB / 5.452 GB, free: 29.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/10.24, allocations: 176 kB / 5.452 GB, free: 29.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/10.25, allocations: 11.82 MB / 5.464 GB, free: 24.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/10.26, allocations: 1.987 MB / 5.466 GB, free: 24.03 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/10.26, allocations: 0.9104 MB / 5.467 GB, free: 24.02 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/10.26, allocations: 2.476 MB / 5.469 GB, free: 21.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/10.26, allocations: 57.09 kB / 5.469 GB, free: 21.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 3.267e-06/10.26, allocations: 0 / 5.469 GB, free: 21.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=145): time 0.006006/10.27, allocations: 2.454 MB / 5.472 GB, free: 21.19 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/10.27, allocations: 198.1 kB / 5.472 GB, free: 20.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/10.27, allocations: 1.147 MB / 5.473 GB, free: 20.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002179/10.27, allocations: 33.02 kB / 5.473 GB, free: 20.76 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000346/10.27, allocations: 0.7568 MB / 5.474 GB, free: 20.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/10.27, allocations: 491.3 kB / 5.474 GB, free: 19.97 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/10.27, allocations: 3.719 kB / 5.474 GB, free: 19.97 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.585e-05/10.27, allocations: 382.6 kB / 5.475 GB, free: 19.66 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/10.27, allocations: 1.016 MB / 5.476 GB, free: 19.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/10.27, allocations: 1.381 MB / 5.477 GB, free: 19.29 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007649/10.28, allocations: 2.323 MB / 5.479 GB, free: 19.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-05/10.28, allocations: 3.469 kB / 5.479 GB, free: 19.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01197/10.29, allocations: 4.038 MB / 5.483 GB, free: 19.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005509/10.29, allocations: 3.586 MB / 5.487 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/10.29, allocations: 11.34 kB / 5.487 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/10.29, allocations: 408.7 kB / 5.487 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/10.3, allocations: 446 kB / 5.487 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/10.3, allocations: 1.961 MB / 5.489 GB, free: 14.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002286/10.3, allocations: 226.7 kB / 5.49 GB, free: 14.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002949/10.3, allocations: 124.2 kB / 5.49 GB, free: 14.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/10.3, allocations: 3.594 kB / 5.49 GB, free: 14.21 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009399/10.31, allocations: 3.574 MB / 5.493 GB, free: 14.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/10.31, allocations: 11.38 kB / 5.493 GB, free: 14.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005908/10.31, allocations: 217 kB / 5.493 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002202/10.31, allocations: 496.4 kB / 5.494 GB, free: 14.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/10.31, allocations: 1.492 MB / 5.495 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/10.32, allocations: 172.4 kB / 5.496 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/10.32, allocations: 121.1 kB / 5.496 GB, free: 13.02 MB / 0.6042 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.0005329/10.32, allocations: 150.9 kB / 5.496 GB, free: 12.91 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003539/10.32, allocations: 173.1 kB / 5.496 GB, free: 12.83 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00822/10.33, allocations: 4.026 MB / 5.5 GB, free: 12.58 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/10.33, allocations: 17.94 kB / 5.5 GB, free: 12.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/10.33, allocations: 4.062 kB / 5.5 GB, free: 12.58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/10.33, allocations: 7.453 kB / 5.5 GB, free: 12.58 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/10.34, allocations: 6.635 MB / 5.506 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/10.34, allocations: 7.625 kB / 5.506 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/10.34, allocations: 274.3 kB / 5.507 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/10.34, allocations: 409.7 kB / 5.507 GB, free: 11.16 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/10.34, allocations: 39.5 kB / 5.507 GB, free: 11.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/10.34, allocations: 2.01 MB / 5.509 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.347e-06/10.34, allocations: 9.906 kB / 5.509 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006441/10.35, allocations: 3.402 MB / 5.512 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007775/10.36, allocations: 4.306 MB / 5.517 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007885/10.36, allocations: 323 kB / 5.517 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003576/10.36, allocations: 13.42 kB / 5.517 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/10.36, allocations: 88.22 kB / 5.517 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/10.36, allocations: 121 kB / 5.517 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002474/10.36, allocations: 114.3 kB / 5.517 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001157/10.36, allocations: 0.9069 MB / 5.518 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01044/10.37, allocations: 3.799 MB / 5.522 GB, free: 22.21 MB / 0.6198 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.008511/10.38, allocations: 4.047 MB / 5.526 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.006133/10.39, allocations: 4.008 MB / 5.53 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/10.39, allocations: 8.672 kB / 5.53 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001521/10.39, allocations: 1.065 MB / 5.531 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/10.39, allocations: 0.7527 MB / 5.531 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/10.4, allocations: 3.339 MB / 5.535 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/10.4, allocations: 1.905 MB / 5.537 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of SimCode: time 8.21e-07/10.4, allocations: 0 / 5.537 GB, free: 19.27 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sources_TestSources_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1)