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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 108.7 kB / 16.41 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 185.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002531/0.002531, allocations: 289.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9861/0.9861, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002825/0.002825, allocations: 103.8 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4366, allocations: 86.98 MB / 0.7671 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003038/0.4397, allocations: 1.828 MB / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.4407, allocations: 0.5416 MB / 0.7694 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.801e-05/0.4408, allocations: 0 / 0.7694 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.441, allocations: 31.72 kB / 0.7694 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.033e-05/0.441, allocations: 23.67 kB / 0.7694 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.4412, allocations: 67.92 kB / 0.7695 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.4415, allocations: 175.4 kB / 0.7697 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.4416, allocations: 45.62 kB / 0.7697 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.791e-05/0.4417, allocations: 47.8 kB / 0.7698 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.557e-05/0.4418, allocations: 59.69 kB / 0.7698 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.4418, allocations: 8 kB / 0.7698 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.098e-05/0.4418, allocations: 19.88 kB / 0.7698 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.631e-05/0.4419, allocations: 31.84 kB / 0.7699 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.963e-05/0.4419, allocations: 63.61 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.4421, allocations: 137 kB / 0.7701 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4421, allocations: 4 kB / 0.7701 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4421, allocations: 0 / 0.7701 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.4421, allocations: 3.938 kB / 0.7701 GB, free: 0.8594 MB / 0.5294 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.0007443/0.4429, allocations: 470.6 kB / 0.7705 GB, free: 360 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.4429, allocations: 12.03 kB / 0.7705 GB, free: 348 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.666e-05/0.443, allocations: 16.84 kB / 0.7705 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.4433, allocations: 248 kB / 0.7708 GB, free: 44 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.4433, allocations: 4.375 kB / 0.7708 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.4433, allocations: 12.38 kB / 0.7708 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.4436, allocations: 153.3 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.4436, allocations: 4 kB / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.4437, allocations: 8 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4437, allocations: 3.984 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.4439, allocations: 75.83 kB / 0.771 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009508/0.4448, allocations: 0.7395 MB / 0.7718 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.445, allocations: 46.41 kB / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.4451, allocations: 36.83 kB / 0.7718 GB, free: 14.87 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.4451, allocations: 4 kB / 0.7718 GB, free: 14.87 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.4454, allocations: 122.7 kB / 0.772 GB, free: 14.72 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.4454, allocations: 0 / 0.772 GB, free: 14.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004933/0.4459, allocations: 169.6 kB / 0.7721 GB, free: 14.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.208e-05/0.4459, allocations: 128.5 kB / 0.7722 GB, free: 14.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.4461, allocations: 207.6 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.4462, allocations: 25.7 kB / 0.7725 GB, free: 14.15 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.4463, allocations: 127.7 kB / 0.7726 GB, free: 14.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.737e-05/0.4463, allocations: 39.84 kB / 0.7726 GB, free: 13.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.4464, allocations: 45.64 kB / 0.7727 GB, free: 13.93 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4465, allocations: 330.9 kB / 0.773 GB, free: 13.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.4467, allocations: 35.97 kB / 0.773 GB, free: 13.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.4469, allocations: 152 kB / 0.7732 GB, free: 13.37 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.4472, allocations: 206.3 kB / 0.7734 GB, free: 13.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4472, allocations: 0 / 0.7734 GB, free: 13.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000423/0.4476, allocations: 209.1 kB / 0.7736 GB, free: 12.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.4477, allocations: 8 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4477, allocations: 4 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4477, allocations: 4 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.4478, allocations: 36.42 kB / 0.7736 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.4478, allocations: 8 kB / 0.7736 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.448, allocations: 27.81 kB / 0.7736 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.448, allocations: 19.98 kB / 0.7737 GB, free: 12.8 MB / 0.545 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 (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 0.0001262/0.4481, allocations: 136.1 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.908e-05/0.4481, allocations: 15.91 kB / 0.7738 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.4482, allocations: 25.39 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4482, allocations: 0 / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4482, allocations: 0 / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4482, allocations: 8 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008099/0.449, allocations: 0.5093 MB / 0.7743 GB, free: 12.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.449, allocations: 0 / 0.7743 GB, free: 12.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.4491, allocations: 20.2 kB / 0.7743 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.4491, allocations: 4 kB / 0.7744 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.4492, allocations: 8 kB / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4492, allocations: 4.312 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4492, allocations: 3.938 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005448/0.4497, allocations: 375.2 kB / 0.7747 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.4498, allocations: 89.06 kB / 0.7748 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.4498, allocations: 11.98 kB / 0.7748 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.45, allocations: 11.98 kB / 0.7748 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.45, allocations: 15.92 kB / 0.7748 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.45, allocations: 4 kB / 0.7749 GB, free: 11.46 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001167/0.4502, allocations: 140.6 kB / 0.775 GB, free: 11.33 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.4502, allocations: 0 / 0.775 GB, free: 11.33 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003262/0.4505, allocations: 28 kB / 0.775 GB, free: 11.3 MB / 0.545 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,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 0.0001352/0.4506, allocations: 111.2 kB / 0.7751 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003234/0.451, allocations: 112.4 kB / 0.7752 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.451, allocations: 4.312 kB / 0.7752 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.4511, allocations: 47.91 kB / 0.7753 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.4516, allocations: 62.38 kB / 0.7753 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.4523, allocations: 360 kB / 0.7757 GB, free: 10.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.4526, allocations: 0.7203 MB / 0.7764 GB, free: 9.828 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.463e-05/0.4527, allocations: 17.67 kB / 0.7764 GB, free: 9.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.382e-05/0.4527, allocations: 27.38 kB / 0.7764 GB, free: 9.785 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.4527, allocations: 0 / 0.7764 GB, free: 9.785 MB / 0.545 GB Notification: Performance of Templates: time 0.005436/0.4582, allocations: 2.038 MB / 0.7784 GB, free: 7.77 MB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)