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.841/0.841, allocations: 143.4 MB / 159.2 MB, free: 4.824 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.001104/0.001104, allocations: 190.7 kB / 191.9 MB, free: 5.703 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.383/1.383, allocations: 222.9 MB / 447.3 MB, free: 5.852 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.001014/0.001014, allocations: 103.8 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001985/0.001985, allocations: 280.1 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 83.86 kB / 0.6885 GB, free: 3.824 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3344, allocations: 81.3 MB / 0.7679 GB, free: 27.64 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002534/0.337, allocations: 1.88 MB / 0.7698 GB, free: 25.75 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.000695/0.3377, allocations: 0.5454 MB / 0.7703 GB, free: 25.2 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.585e-05/0.3378, allocations: 4 kB / 0.7703 GB, free: 25.2 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.3379, allocations: 15.8 kB / 0.7703 GB, free: 25.18 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 6.098e-05/0.338, allocations: 19.86 kB / 0.7703 GB, free: 25.16 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.3382, allocations: 59.88 kB / 0.7704 GB, free: 25.1 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.3384, allocations: 159.5 kB / 0.7706 GB, free: 24.95 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.3385, allocations: 52.33 kB / 0.7706 GB, free: 24.9 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.068e-05/0.3386, allocations: 55.66 kB / 0.7707 GB, free: 24.84 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.07e-05/0.3386, allocations: 55.64 kB / 0.7707 GB, free: 24.79 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.3387, allocations: 8 kB / 0.7707 GB, free: 24.78 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.677e-05/0.3387, allocations: 4 kB / 0.7707 GB, free: 24.78 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.3387, allocations: 31.84 kB / 0.7708 GB, free: 24.75 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 5.001e-05/0.3388, allocations: 63.55 kB / 0.7708 GB, free: 24.68 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.3389, allocations: 115.5 kB / 0.7709 GB, free: 24.57 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3389, allocations: 11.92 kB / 0.7709 GB, free: 24.56 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.3389, allocations: 0 / 0.7709 GB, free: 24.56 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.3389, allocations: 4 kB / 0.7709 GB, free: 24.55 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005476/0.3395, allocations: 470.7 kB / 0.7714 GB, free: 24.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.3395, allocations: 12.03 kB / 0.7714 GB, free: 24.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.3396, allocations: 16.75 kB / 0.7714 GB, free: 24.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.3397, allocations: 232.4 kB / 0.7716 GB, free: 23.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3398, allocations: 16.3 kB / 0.7717 GB, free: 23.74 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.3398, allocations: 12.38 kB / 0.7717 GB, free: 23.73 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.34, allocations: 149.7 kB / 0.7718 GB, free: 23.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3401, allocations: 0 / 0.7718 GB, free: 23.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3401, allocations: 8 kB / 0.7718 GB, free: 23.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3401, allocations: 4 kB / 0.7718 GB, free: 23.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.3403, allocations: 75.81 kB / 0.7719 GB, free: 23.48 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.341, allocations: 0.7353 MB / 0.7726 GB, free: 22.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.3411, allocations: 50.55 kB / 0.7727 GB, free: 22.62 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.265e-05/0.3412, allocations: 32.83 kB / 0.7727 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.3412, allocations: 0 / 0.7727 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.3414, allocations: 134.7 kB / 0.7728 GB, free: 22.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.3415, allocations: 0 / 0.7728 GB, free: 22.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004001/0.3419, allocations: 157.3 kB / 0.773 GB, free: 22.27 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.3419, allocations: 144.7 kB / 0.7731 GB, free: 22.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.342, allocations: 202.7 kB / 0.7733 GB, free: 21.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.3421, allocations: 33.69 kB / 0.7733 GB, free: 21.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/0.3421, allocations: 127.9 kB / 0.7735 GB, free: 21.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.3421, allocations: 31.75 kB / 0.7735 GB, free: 21.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.3422, allocations: 45.61 kB / 0.7735 GB, free: 21.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.224e-05/0.3422, allocations: 330.8 kB / 0.7738 GB, free: 21.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.3423, allocations: 39.97 kB / 0.7739 GB, free: 21.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.3425, allocations: 151.8 kB / 0.774 GB, free: 21.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.3427, allocations: 202.3 kB / 0.7742 GB, free: 20.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3427, allocations: 4 kB / 0.7742 GB, free: 20.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003151/0.343, allocations: 201.3 kB / 0.7744 GB, free: 20.61 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.3431, allocations: 8.625 kB / 0.7744 GB, free: 20.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3431, allocations: 4 kB / 0.7744 GB, free: 20.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3431, allocations: 4 kB / 0.7744 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3432, allocations: 43.84 kB / 0.7745 GB, free: 20.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3433, allocations: 4 kB / 0.7745 GB, free: 20.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.3434, allocations: 24.11 kB / 0.7745 GB, free: 20.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.3434, allocations: 16 kB / 0.7745 GB, free: 20.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.197e-05/0.3435, allocations: 137.7 kB / 0.7746 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.3435, allocations: 19.8 kB / 0.7747 GB, free: 20.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/0.3436, allocations: 17.41 kB / 0.7747 GB, free: 20.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3436, allocations: 4 kB / 0.7747 GB, free: 20.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3436, allocations: 0 / 0.7747 GB, free: 20.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3436, allocations: 3.984 kB / 0.7747 GB, free: 20.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005652/0.3442, allocations: 0.5132 MB / 0.7752 GB, free: 19.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3442, allocations: 0 / 0.7752 GB, free: 19.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.3443, allocations: 23.97 kB / 0.7752 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3443, allocations: 0 / 0.7752 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3443, allocations: 4 kB / 0.7752 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3443, allocations: 0 / 0.7752 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3443, allocations: 12.25 kB / 0.7752 GB, free: 19.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009599/0.3453, allocations: 1.361 MB / 0.7766 GB, free: 18.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.819e-05/0.3453, allocations: 96.95 kB / 0.7767 GB, free: 18.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.3454, allocations: 7.938 kB / 0.7767 GB, free: 18.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.3455, allocations: 11.98 kB / 0.7767 GB, free: 18.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.3456, allocations: 11.98 kB / 0.7767 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.3456, allocations: 8 kB / 0.7767 GB, free: 18.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.362e-05/0.3457, allocations: 140.6 kB / 0.7768 GB, free: 17.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3457, allocations: 0 / 0.7768 GB, free: 17.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003793/0.3461, allocations: 43.92 kB / 0.7769 GB, free: 17.87 MB / 458.7 MB 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,sampleTrigger.y,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.161e-05/0.3461, allocations: 99.25 kB / 0.777 GB, free: 17.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.3464, allocations: 116.1 kB / 0.7771 GB, free: 17.65 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3464, allocations: 0 / 0.7771 GB, free: 17.65 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.3465, allocations: 51.91 kB / 0.7771 GB, free: 17.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.3471, allocations: 63.27 kB / 0.7772 GB, free: 17.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005186/0.3476, allocations: 0.5164 MB / 0.7777 GB, free: 16.97 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.3477, allocations: 0.7245 MB / 0.7784 GB, free: 16.22 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.604e-05/0.3478, allocations: 25.67 kB / 0.7784 GB, free: 16.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.3478, allocations: 15.44 kB / 0.7784 GB, free: 16.18 MB / 458.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3478, allocations: 0 / 0.7784 GB, free: 16.18 MB / 458.7 MB Notification: Performance of Templates: time 0.003802/0.3517, allocations: 1.953 MB / 0.7803 GB, free: 14.25 MB / 458.7 MB 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)