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.8816/0.8816, allocations: 141.8 MB / 149.3 MB, free: 9.242 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.0009793/0.0009793, allocations: 183.5 kB / 182.2 MB, free: 9.473 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.384/1.384, allocations: 221.5 MB / 436.4 MB, free: 13.37 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.0008667/0.0008668, allocations: 84.11 kB / 0.5074 GB, free: 10.2 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001762/0.001762, allocations: 275.8 kB / 0.5889 GB, free: 54.72 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.004e-05/2.013e-05, allocations: 8 kB / 0.6765 GB, free: 12.88 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3589, allocations: 82.77 MB / 0.7574 GB, free: 32.07 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.4931, allocations: 109.8 MB / 0.8646 GB, free: 2.082 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.4933, allocations: 79.83 kB / 0.8647 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01032/0.5036, allocations: 3.511 MB / 0.8681 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.395e-06/0.5037, allocations: 0 / 0.8681 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.436e-05/0.5037, allocations: 4 kB / 0.8681 GB, free: 14.49 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.0007216/0.5045, allocations: 434.6 kB / 0.8686 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.5045, allocations: 12.03 kB / 0.8686 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.639e-05/0.5046, allocations: 15.81 kB / 0.8686 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.5049, allocations: 234.6 kB / 0.8688 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.505, allocations: 7.953 kB / 0.8688 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.505, allocations: 15.98 kB / 0.8688 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001317/0.5052, allocations: 32 kB / 0.8689 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.5054, allocations: 113.9 kB / 0.869 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5054, allocations: 4 kB / 0.869 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.5054, allocations: 0 / 0.869 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.5055, allocations: 4 kB / 0.869 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.5065, allocations: 0.7126 MB / 0.8697 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.895e-05/0.5066, allocations: 34.75 kB / 0.8697 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.5067, allocations: 24.81 kB / 0.8697 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.5067, allocations: 0 / 0.8697 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.5069, allocations: 111.2 kB / 0.8698 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 3.297e-06/0.5069, allocations: 0 / 0.8698 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0002397/0.5071, allocations: 101.4 kB / 0.8699 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.5072, allocations: 132.5 kB / 0.8701 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.5074, allocations: 161.6 kB / 0.8702 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.5074, allocations: 29.69 kB / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.223e-05/0.5075, allocations: 127.8 kB / 0.8704 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.5076, allocations: 43.69 kB / 0.8704 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/0.5076, allocations: 0 / 0.8704 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.5077, allocations: 322.8 kB / 0.8707 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.514e-05/0.5078, allocations: 24.38 kB / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.5079, allocations: 129.5 kB / 0.8709 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.056e-05/0.508, allocations: 39.92 kB / 0.8709 GB, free: 11.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.508, allocations: 0 / 0.8709 GB, free: 11.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002441/0.5082, allocations: 157.2 kB / 0.8711 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5083, allocations: 13.36 kB / 0.8711 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.5083, allocations: 4 kB / 0.8711 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.5083, allocations: 4.5 kB / 0.8711 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.5085, allocations: 39.92 kB / 0.8711 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.5085, allocations: 11.92 kB / 0.8711 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.5087, allocations: 23.89 kB / 0.8711 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.5087, allocations: 8 kB / 0.8712 GB, free: 11.09 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 () * 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 9.816e-05/0.5088, allocations: 116.9 kB / 0.8713 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.5088, allocations: 15.81 kB / 0.8713 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.5089, allocations: 29.78 kB / 0.8713 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.5089, allocations: 4 kB / 0.8713 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5089, allocations: 0 / 0.8713 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.5089, allocations: 0 / 0.8713 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005962/0.5095, allocations: 466.2 kB / 0.8718 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.5095, allocations: 4 kB / 0.8718 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.5097, allocations: 27.88 kB / 0.8718 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.5097, allocations: 0 / 0.8718 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.5097, allocations: 4 kB / 0.8718 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.5097, allocations: 3.938 kB / 0.8718 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.5097, allocations: 4 kB / 0.8718 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003151/0.51, allocations: 349.3 kB / 0.8721 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.5101, allocations: 92.86 kB / 0.8722 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.5101, allocations: 8.031 kB / 0.8722 GB, free: 9.875 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.5103, allocations: 15.98 kB / 0.8722 GB, free: 9.859 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.5104, allocations: 19.92 kB / 0.8723 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.5104, allocations: 7.953 kB / 0.8723 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 8.291e-05/0.5105, allocations: 116.5 kB / 0.8724 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5105, allocations: 0 / 0.8724 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003468/0.5109, allocations: 27.98 kB / 0.8724 GB, free: 9.691 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 () * 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.0001427/0.511, allocations: 103.9 kB / 0.8725 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.5112, allocations: 84.09 kB / 0.8726 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5112, allocations: 0 / 0.8726 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.13e-05/0.5113, allocations: 31.94 kB / 0.8726 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004554/0.5118, allocations: 57.11 kB / 0.8727 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/0.5123, allocations: 252.8 kB / 0.8729 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.5126, allocations: 0.7241 MB / 0.8736 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.299e-05/0.5127, allocations: 21.52 kB / 0.8736 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/0.5127, allocations: 15.44 kB / 0.8737 GB, free: 8.348 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.5127, allocations: 4 kB / 0.8737 GB, free: 8.344 MB / 0.5417 GB Notification: Performance of Templates: time 0.004236/0.5169, allocations: 1.605 MB / 0.8752 GB, free: 6.77 MB / 0.5417 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)