Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.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.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7906/0.7906, allocations: 143.4 MB / 158.3 MB, free: 5.75 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 185 kB / 191.5 MB, free: 5.738 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 447.7 MB, free: 6.516 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008715/0.0008714, allocations: 111.5 kB / 0.5188 GB, free: 2.863 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001903/0.001903, allocations: 275.8 kB / 0.6005 GB, free: 48.96 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005054/0.0005054, allocations: 16 kB / 0.6929 GB, free: 2.312 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.457/0.4575, allocations: 82.78 MB / 0.7737 GB, free: 26.21 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.6197, allocations: 110.6 MB / 0.8817 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.6201, allocations: 79.83 kB / 0.8818 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009464/0.6295, allocations: 3.539 MB / 0.8852 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.444e-06/0.6296, allocations: 0 / 0.8852 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.349e-05/0.6296, allocations: 8.219 kB / 0.8852 GB, free: 7.863 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006818/0.6303, allocations: 463.1 kB / 0.8857 GB, free: 7.363 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.6304, allocations: 12.56 kB / 0.8857 GB, free: 7.352 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/0.6304, allocations: 19.72 kB / 0.8857 GB, free: 7.332 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.6307, allocations: 230.8 kB / 0.8859 GB, free: 7.066 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.6307, allocations: 11.95 kB / 0.8859 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.6308, allocations: 15.91 kB / 0.886 GB, free: 7.039 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.6311, allocations: 157.1 kB / 0.8861 GB, free: 6.867 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.6311, allocations: 0 / 0.8861 GB, free: 6.867 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.6311, allocations: 7.984 kB / 0.8861 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.6312, allocations: 4 kB / 0.8861 GB, free: 6.855 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002222/0.6314, allocations: 75.89 kB / 0.8862 GB, free: 6.781 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.6325, allocations: 0.7589 MB / 0.8869 GB, free: 5.957 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.6326, allocations: 62.41 kB / 0.887 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.6327, allocations: 4 kB / 0.887 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003123/0.633, allocations: 126.8 kB / 0.8871 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.633, allocations: 0 / 0.8871 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0004976/0.6335, allocations: 181.4 kB / 0.8873 GB, free: 5.551 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/0.6336, allocations: 132.5 kB / 0.8874 GB, free: 5.391 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.6338, allocations: 182.2 kB / 0.8876 GB, free: 5.203 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.6338, allocations: 25.7 kB / 0.8876 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.522e-05/0.6339, allocations: 136 kB / 0.8877 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.6339, allocations: 31.52 kB / 0.8878 GB, free: 5.004 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-06/0.634, allocations: 4 kB / 0.8878 GB, free: 5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6341, allocations: 330.8 kB / 0.8881 GB, free: 4.668 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.6342, allocations: 52.28 kB / 0.8881 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.6344, allocations: 151.2 kB / 0.8883 GB, free: 4.414 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.6346, allocations: 55.92 kB / 0.8883 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6346, allocations: 4 kB / 0.8883 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003769/0.635, allocations: 213.5 kB / 0.8885 GB, free: 4.141 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.635, allocations: 16 kB / 0.8886 GB, free: 4.125 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.635, allocations: 4 kB / 0.8886 GB, free: 4.121 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.635, allocations: 4 kB / 0.8886 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.6352, allocations: 35.97 kB / 0.8886 GB, free: 4.082 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.6352, allocations: 7.938 kB / 0.8886 GB, free: 4.074 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.6353, allocations: 32.08 kB / 0.8886 GB, free: 4.043 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.6353, allocations: 8 kB / 0.8886 GB, free: 4.035 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001268/0.6355, allocations: 141.7 kB / 0.8888 GB, free: 3.887 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.6355, allocations: 24.05 kB / 0.8888 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.858e-05/0.6356, allocations: 25.38 kB / 0.8888 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.6356, allocations: 4 kB / 0.8888 GB, free: 3.836 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.6356, allocations: 0 / 0.8888 GB, free: 3.836 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.6356, allocations: 0 / 0.8888 GB, free: 3.836 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000746/0.6364, allocations: 0.5288 MB / 0.8893 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6364, allocations: 0 / 0.8893 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.6365, allocations: 23.92 kB / 0.8894 GB, free: 3.227 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6365, allocations: 4 kB / 0.8894 GB, free: 3.223 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.6365, allocations: 4 kB / 0.8894 GB, free: 3.219 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.6366, allocations: 3.984 kB / 0.8894 GB, free: 3.215 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6366, allocations: 0 / 0.8894 GB, free: 3.215 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006017/0.6372, allocations: 416.7 kB / 0.8898 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-05/0.6373, allocations: 92.92 kB / 0.8899 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.6373, allocations: 11.95 kB / 0.8899 GB, free: 2.648 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.6375, allocations: 20.03 kB / 0.8899 GB, free: 2.629 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.6376, allocations: 15.97 kB / 0.8899 GB, free: 2.613 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.6376, allocations: 7.938 kB / 0.8899 GB, free: 2.605 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001273/0.6377, allocations: 136.6 kB / 0.8901 GB, free: 2.473 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6377, allocations: 4 kB / 0.8901 GB, free: 2.469 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003309/0.6381, allocations: 28 kB / 0.8901 GB, free: 2.441 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002157/0.6383, allocations: 107.2 kB / 0.8902 GB, free: 2.328 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003662/0.6387, allocations: 128 kB / 0.8903 GB, free: 2.203 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.6387, allocations: 0 / 0.8903 GB, free: 2.203 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.6388, allocations: 55.91 kB / 0.8904 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.6393, allocations: 56.44 kB / 0.8904 GB, free: 2.098 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.64, allocations: 390.6 kB / 0.8908 GB, free: 1.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.6404, allocations: 0.7362 MB / 0.8915 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.648e-05/0.6405, allocations: 13.55 kB / 0.8915 GB, free: 0.9062 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.6405, allocations: 19.44 kB / 0.8915 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.6405, allocations: 0 / 0.8915 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of Templates: time 0.004898/0.6454, allocations: 1.74 MB / 0.8932 GB, free: 15.17 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)