Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7522/0.7522, allocations: 141.8 MB / 149.1 MB, free: 13.04 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 187.2 kB / 181.9 MB, free: 9.75 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 221.4 MB / 436 MB, free: 10.06 MB / 362.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009811/0.0009813, allocations: 92.58 kB / 0.507 GB, free: 6.84 MB / 442.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001777/0.001777, allocations: 277.9 kB / 0.5884 GB, free: 98.68 MB / 458.9 MB Notification: Performance of FrontEnd - loaded program: time 9.608e-06/9.618e-06, allocations: 4 kB / 0.6759 GB, free: 9.383 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3914, allocations: 82.77 MB / 0.7567 GB, free: 38.73 MB / 474.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.5224, allocations: 107.1 MB / 0.8613 GB, free: 0.9844 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.5227, allocations: 87.55 kB / 0.8614 GB, free: 0.9023 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.001283/0.524, allocations: 248.4 kB / 0.8616 GB, free: 0.6719 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.524, allocations: 0 / 0.8616 GB, free: 0.6719 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002301/0.5242, allocations: 313.9 kB / 0.8619 GB, free: 332 kB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.5243, allocations: 8.531 kB / 0.8619 GB, free: 324 kB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.5245, allocations: 15.97 kB / 0.862 GB, free: 308 kB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.5246, allocations: 159.1 kB / 0.8621 GB, free: 108 kB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.5246, allocations: 0 / 0.8621 GB, free: 108 kB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.5246, allocations: 0 / 0.8621 GB, free: 108 kB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.346e-05/0.5247, allocations: 14.08 kB / 0.8621 GB, free: 96 kB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.288e-05/0.5248, allocations: 33.7 kB / 0.8622 GB, free: 56 kB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.5248, allocations: 3.938 kB / 0.8622 GB, free: 52 kB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.5248, allocations: 0 / 0.8622 GB, free: 52 kB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.5248, allocations: 4 kB / 0.8622 GB, free: 48 kB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.5249, allocations: 126.2 kB / 0.8623 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 3.454e-05/0.525, allocations: 14.58 kB / 0.8623 GB, free: 15.86 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.837e-05/0.525, allocations: 8.953 kB / 0.8623 GB, free: 15.85 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.525, allocations: 4 kB / 0.8623 GB, free: 15.85 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.5251, allocations: 30.56 kB / 0.8623 GB, free: 15.81 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.5251, allocations: 0 / 0.8623 GB, free: 15.81 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001265/0.5252, allocations: 41.59 kB / 0.8624 GB, free: 15.76 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.5252, allocations: 55.34 kB / 0.8624 GB, free: 15.7 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.438e-05/0.5253, allocations: 85 kB / 0.8625 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.5253, allocations: 25.7 kB / 0.8625 GB, free: 15.57 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.424e-05/0.5253, allocations: 81.55 kB / 0.8626 GB, free: 15.49 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.5253, allocations: 8.031 kB / 0.8626 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.5254, allocations: 0 / 0.8626 GB, free: 15.48 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 8.678e-05/0.5254, allocations: 310.8 kB / 0.8629 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.5255, allocations: 0 / 0.8629 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.5255, allocations: 0 / 0.8629 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.569e-05/0.5255, allocations: 4 kB / 0.8629 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5255, allocations: 0 / 0.8629 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.54e-05/0.5256, allocations: 37.59 kB / 0.863 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.5256, allocations: 8.094 kB / 0.863 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.5256, allocations: 0 / 0.863 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.5256, allocations: 4 kB / 0.863 GB, free: 15.11 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.95e-05/0.5257, allocations: 3.938 kB / 0.863 GB, free: 15.11 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.5257, allocations: 0 / 0.863 GB, free: 15.11 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.651e-05/0.5257, allocations: 7.984 kB / 0.863 GB, free: 15.1 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.5257, allocations: 0.5625 kB / 0.863 GB, free: 15.1 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/0.5258, allocations: 104.9 kB / 0.8631 GB, free: 14.99 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-06/0.5258, allocations: 7.906 kB / 0.8631 GB, free: 14.98 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.5259, allocations: 11 kB / 0.8631 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.5259, allocations: 3.984 kB / 0.8631 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5259, allocations: 0 / 0.8631 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5259, allocations: 2.719 kB / 0.8631 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.624e-05/0.526, allocations: 129 kB / 0.8632 GB, free: 14.81 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.526, allocations: 0 / 0.8632 GB, free: 14.81 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.116e-05/0.526, allocations: 4 kB / 0.8632 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.526, allocations: 0 / 0.8632 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.526, allocations: 0 / 0.8632 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.526, allocations: 7.906 kB / 0.8632 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.526, allocations: 0 / 0.8632 GB, free: 14.8 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.487e-05/0.5261, allocations: 57.12 kB / 0.8633 GB, free: 14.72 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.89e-05/0.5262, allocations: 77.11 kB / 0.8634 GB, free: 14.63 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.5262, allocations: 0 / 0.8634 GB, free: 14.63 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.007e-05/0.5262, allocations: 11.98 kB / 0.8634 GB, free: 14.62 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.027e-05/0.5262, allocations: 3.906 kB / 0.8634 GB, free: 14.61 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.5262, allocations: 4.031 kB / 0.8634 GB, free: 14.61 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.177e-05/0.5263, allocations: 75.28 kB / 0.8635 GB, free: 14.54 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0001616/0.5264, allocations: 0 / 0.8635 GB, free: 14.54 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.5266, allocations: 103.2 kB / 0.8636 GB, free: 14.42 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 5.596e-05/0.5266, allocations: 4 kB / 0.8636 GB, free: 14.42 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5266, allocations: 0 / 0.8636 GB, free: 14.42 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 7.464e-06/0.5266, allocations: 0 / 0.8636 GB, free: 14.42 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.588e-05/0.5267, allocations: 2.938 kB / 0.8636 GB, free: 14.42 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001786/0.5269, allocations: 52.06 kB / 0.8636 GB, free: 14.34 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.5272, allocations: 0.6802 MB / 0.8643 GB, free: 13.64 MB / 0.5419 GB Notification: Performance of SimCode: time 1.673e-06/0.5272, allocations: 0 / 0.8643 GB, free: 13.64 MB / 0.5419 GB Notification: Performance of Templates: time 0.001798/0.529, allocations: 291.9 kB / 0.8646 GB, free: 13.36 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)