Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") [: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.2+maint.om/package.mo): time 0.001422/0.001422, allocations: 190.2 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.099/1.099, allocations: 194.2 MB / 202.8 MB, free: 8.762 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001803/0.001803, allocations: 120.3 kB / 247.7 MB, free: 6.289 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.794e-06/7.955e-06, allocations: 4 kB / 297.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0713/0.07132, allocations: 44.49 MB / 342.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.881/5.953, allocations: 3.665 GB / 3.999 GB, free: 123.2 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/5.953, allocations: 86.86 kB / 3.999 GB, free: 123.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.932/7.885, allocations: 0.5493 GB / 4.548 GB, free: 30.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001279/7.885, allocations: 25.16 kB / 4.548 GB, free: 30.9 MB / 410.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 0.01348/7.898, allocations: 3.008 MB / 4.551 GB, free: 28.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/7.898, allocations: 8.031 kB / 4.551 GB, free: 28.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/7.9, allocations: 129.5 kB / 4.551 GB, free: 28.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/7.902, allocations: 0.7313 MB / 4.552 GB, free: 27.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/7.902, allocations: 100 kB / 4.552 GB, free: 27.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003919/7.903, allocations: 59.05 kB / 4.552 GB, free: 27.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002743/7.905, allocations: 1.317 MB / 4.554 GB, free: 26.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/7.908, allocations: 1.313 MB / 4.555 GB, free: 25.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.978e-05/7.908, allocations: 11.94 kB / 4.555 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001928/7.908, allocations: 0 / 4.555 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-05/7.908, allocations: 68.83 kB / 4.555 GB, free: 25.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/7.919, allocations: 6.427 MB / 4.561 GB, free: 19.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/7.92, allocations: 0.586 MB / 4.562 GB, free: 18.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006243/7.92, allocations: 449.3 kB / 4.562 GB, free: 18.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009819/7.921, allocations: 1.245 MB / 4.563 GB, free: 16.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/7.921, allocations: 43.22 kB / 4.563 GB, free: 16.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=76): time 3.387e-06/7.921, allocations: 0 / 4.563 GB, free: 16.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=88): time 0.0166/7.938, allocations: 4.157 MB / 4.568 GB, free: 12.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/7.938, allocations: 115.6 kB / 4.568 GB, free: 12.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009032/7.939, allocations: 0.5695 MB / 4.568 GB, free: 12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/7.939, allocations: 25.7 kB / 4.568 GB, free: 11.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/7.94, allocations: 426.3 kB / 4.569 GB, free: 11.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/7.94, allocations: 303.6 kB / 4.569 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/7.94, allocations: 7.938 kB / 4.569 GB, free: 11.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/7.94, allocations: 394.7 kB / 4.569 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008742/7.941, allocations: 0.5297 MB / 4.57 GB, free: 10.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009681/7.942, allocations: 0.9192 MB / 4.571 GB, free: 9.223 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005576/7.948, allocations: 1.345 MB / 4.572 GB, free: 7.875 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/7.948, allocations: 4 kB / 4.572 GB, free: 7.871 MB / 410.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00762/7.955, allocations: 2.287 MB / 4.574 GB, free: 5.574 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008567/7.956, allocations: 4.7 MB / 4.579 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/7.956, allocations: 12 kB / 4.579 GB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/7.957, allocations: 242.6 kB / 4.579 GB, free: 268 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/7.959, allocations: 292 kB / 4.579 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/7.96, allocations: 0.8643 MB / 4.58 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/7.961, allocations: 95.83 kB / 4.58 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002691/7.962, allocations: 79.97 kB / 4.58 GB, free: 14.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/7.962, allocations: 4.625 kB / 4.58 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007958/7.97, allocations: 2.131 MB / 4.582 GB, free: 12.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/7.97, allocations: 12.73 kB / 4.583 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/7.971, allocations: 251.9 kB / 4.583 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/7.972, allocations: 283.5 kB / 4.583 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/7.974, allocations: 0.8721 MB / 4.584 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/7.975, allocations: 87.83 kB / 4.584 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/7.976, allocations: 85.81 kB / 4.584 GB, free: 11.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 (153): * Single equations (assignments): 150 * 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.0006151/7.976, allocations: 152.2 kB / 4.584 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003796/7.977, allocations: 86.97 kB / 4.584 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005511/7.982, allocations: 1.803 MB / 4.586 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-05/7.982, allocations: 8 kB / 4.586 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/7.982, allocations: 0 / 4.586 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/7.982, allocations: 3.984 kB / 4.586 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008201/7.99, allocations: 3.362 MB / 4.589 GB, free: 5.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/7.991, allocations: 4 kB / 4.589 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009869/7.991, allocations: 172.2 kB / 4.589 GB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/7.993, allocations: 319.5 kB / 4.59 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/7.993, allocations: 31.97 kB / 4.59 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/7.994, allocations: 0.828 MB / 4.591 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/7.994, allocations: 11.94 kB / 4.591 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005474/8, allocations: 2.419 MB / 4.593 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/8.001, allocations: 315.8 kB / 4.593 GB, free: 1.352 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/8.001, allocations: 15.98 kB / 4.593 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/8.003, allocations: 63.88 kB / 4.593 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/8.003, allocations: 64.59 kB / 4.593 GB, free: 1.211 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/8.003, allocations: 55.97 kB / 4.594 GB, free: 1.156 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007797/8.004, allocations: 435.1 kB / 4.594 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.2334/8.237, allocations: 1.256 MB / 4.595 GB, free: 75.36 MB / 426.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 (92): * Single equations (assignments): 89 * 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.006123/8.243, allocations: 2.22 MB / 4.597 GB, free: 75.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003996/8.247, allocations: 2.278 MB / 4.6 GB, free: 75.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/8.247, allocations: 0 / 4.6 GB, free: 75.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/8.249, allocations: 0.6225 MB / 4.6 GB, free: 75.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/8.251, allocations: 372.3 kB / 4.6 GB, free: 75.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005886/8.257, allocations: 2.037 MB / 4.602 GB, free: 74.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/8.258, allocations: 1.295 MB / 4.604 GB, free: 73.9 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/8.258, allocations: 0 / 4.604 GB, free: 73.9 MB / 426.7 MB Notification: Performance of Templates: time 0.06929/8.327, allocations: 45.63 MB / 4.648 GB, free: 72.34 MB / 426.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)