Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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) 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(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",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.001502/0.001502, allocations: 203.4 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.13/1.13, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008366/0.0008367, allocations: 94.7 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09198/0.09284, allocations: 56.9 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08223/0.1751, allocations: 51.47 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.627/4.802, allocations: 3.545 GB / 3.93 GB, free: 133.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001915/4.803, allocations: 84.02 kB / 3.93 GB, free: 133.4 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 1.526/6.329, allocations: 0.5311 GB / 4.462 GB, free: 29.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/6.329, allocations: 14.09 kB / 4.462 GB, free: 29.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004644/6.329, allocations: 131.2 kB / 4.462 GB, free: 29.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/6.331, allocations: 0.7268 MB / 4.462 GB, free: 29.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.012e-05/6.331, allocations: 100.9 kB / 4.463 GB, free: 29.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/6.331, allocations: 51.59 kB / 4.463 GB, free: 29.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001779/6.333, allocations: 1.313 MB / 4.464 GB, free: 29.38 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/6.334, allocations: 1.322 MB / 4.465 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/6.334, allocations: 3.375 kB / 4.465 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/6.335, allocations: 2.5 kB / 4.465 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-05/6.335, allocations: 71.59 kB / 4.465 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006986/6.342, allocations: 6.423 MB / 4.472 GB, free: 25.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009781/6.343, allocations: 0.6261 MB / 4.472 GB, free: 25.62 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/6.343, allocations: 481.5 kB / 4.473 GB, free: 25.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007365/6.344, allocations: 1.297 MB / 4.474 GB, free: 24.21 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/6.344, allocations: 51.22 kB / 4.474 GB, free: 24.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 2.715e-06/6.344, allocations: 0 / 4.474 GB, free: 24.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01378/6.358, allocations: 4.159 MB / 4.478 GB, free: 23.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/6.358, allocations: 113.9 kB / 4.478 GB, free: 23.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/6.358, allocations: 0.5458 MB / 4.479 GB, free: 23.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.621e-05/6.358, allocations: 31.48 kB / 4.479 GB, free: 23.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/6.359, allocations: 408.9 kB / 4.479 GB, free: 23.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/6.359, allocations: 310.9 kB / 4.479 GB, free: 22.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/6.359, allocations: 6.719 kB / 4.479 GB, free: 22.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.765e-05/6.359, allocations: 389.2 kB / 4.48 GB, free: 22.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007238/6.36, allocations: 0.5475 MB / 4.48 GB, free: 22.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008411/6.361, allocations: 0.8853 MB / 4.481 GB, free: 22.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/6.363, allocations: 1.034 MB / 4.482 GB, free: 22.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/6.363, allocations: 5.156 kB / 4.482 GB, free: 22.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004229/6.368, allocations: 1.982 MB / 4.484 GB, free: 22.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005512/6.368, allocations: 3.919 MB / 4.488 GB, free: 18.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/6.368, allocations: 10.34 kB / 4.488 GB, free: 18.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/6.369, allocations: 250.2 kB / 4.488 GB, free: 18.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/6.37, allocations: 276 kB / 4.488 GB, free: 18.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008675/6.371, allocations: 0.862 MB / 4.489 GB, free: 33.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/6.372, allocations: 93.09 kB / 4.489 GB, free: 33.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/6.372, allocations: 64.48 kB / 4.489 GB, free: 33.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/6.372, allocations: 5.281 kB / 4.489 GB, free: 33.49 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003973/6.376, allocations: 1.82 MB / 4.491 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/6.376, allocations: 17.53 kB / 4.491 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009578/6.377, allocations: 251.5 kB / 4.491 GB, free: 33.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/6.379, allocations: 266.5 kB / 4.492 GB, free: 33.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009492/6.38, allocations: 0.8589 MB / 4.493 GB, free: 32.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/6.381, allocations: 79.98 kB / 4.493 GB, free: 32.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/6.381, allocations: 69.67 kB / 4.493 GB, free: 32.93 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000288/6.381, allocations: 151.3 kB / 4.493 GB, free: 32.81 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/6.381, allocations: 85.06 kB / 4.493 GB, free: 32.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004161/6.385, allocations: 1.921 MB / 4.495 GB, free: 32.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/6.385, allocations: 10.56 kB / 4.495 GB, free: 32.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/6.385, allocations: 3.281 kB / 4.495 GB, free: 32.66 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/6.385, allocations: 4.969 kB / 4.495 GB, free: 32.66 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008166/6.394, allocations: 3.83 MB / 4.499 GB, free: 31.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/6.394, allocations: 2.656 kB / 4.499 GB, free: 31.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008783/6.395, allocations: 174.8 kB / 4.499 GB, free: 31.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/6.396, allocations: 320.4 kB / 4.499 GB, free: 31.86 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/6.396, allocations: 29.72 kB / 4.499 GB, free: 31.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009082/6.397, allocations: 0.8422 MB / 4.5 GB, free: 31.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/6.397, allocations: 7.219 kB / 4.5 GB, free: 31.33 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003937/6.401, allocations: 2.469 MB / 4.502 GB, free: 30.79 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004995/6.406, allocations: 3.767 MB / 4.506 GB, free: 29.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005582/6.407, allocations: 323.3 kB / 4.506 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/6.407, allocations: 11.16 kB / 4.506 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009581/6.408, allocations: 66.92 kB / 4.506 GB, free: 29.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/6.408, allocations: 71.28 kB / 4.506 GB, free: 29.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/6.408, allocations: 54.66 kB / 4.506 GB, free: 29.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005572/6.409, allocations: 427 kB / 4.507 GB, free: 29.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005891/6.414, allocations: 1.694 MB / 4.508 GB, free: 29.39 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003941/6.418, allocations: 2.117 MB / 4.511 GB, free: 28.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003367/6.422, allocations: 2.311 MB / 4.513 GB, free: 28.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/6.422, allocations: 4.344 kB / 4.513 GB, free: 28.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000908/6.423, allocations: 0.6511 MB / 4.513 GB, free: 28.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/6.424, allocations: 377.7 kB / 4.514 GB, free: 28.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/6.429, allocations: 2.061 MB / 4.516 GB, free: 28.26 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009993/6.43, allocations: 1.278 MB / 4.517 GB, free: 27.55 MB / 474.7 MB Notification: Performance of SimCode: time 3.2e-07/6.43, allocations: 3.281 kB / 4.517 GB, free: 27.55 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)