Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009097/0.0009097, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.009/1.009, allocations: 143.4 MB / 434.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003569, allocations: 12 kB / 0.5161 GB, free: 11.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.176, allocations: 83.42 MB / 0.5975 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.001803/0.1778, allocations: 1.482 MB / 0.599 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007523/0.1786, allocations: 0.5029 MB / 0.5995 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.766e-05/0.1787, allocations: 4 kB / 0.5995 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.1788, allocations: 15.8 kB / 0.5995 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.596e-05/0.1789, allocations: 15.86 kB / 0.5995 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001729/0.179, allocations: 55.88 kB / 0.5996 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.1792, allocations: 155.5 kB / 0.5997 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.1794, allocations: 33.86 kB / 0.5997 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.119e-05/0.1794, allocations: 43.73 kB / 0.5998 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.369e-05/0.1795, allocations: 51.69 kB / 0.5998 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.1795, allocations: 4 kB / 0.5998 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.56e-05/0.1795, allocations: 4 kB / 0.5998 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.1796, allocations: 19.92 kB / 0.5999 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.1796, allocations: 49.58 kB / 0.5999 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.1797, allocations: 92.03 kB / 0.6 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1797, allocations: 0 / 0.6 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1797, allocations: 8 kB / 0.6 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.1798, allocations: 0 / 0.6 GB, free: 5.137 MB / 0.4981 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.0006178/0.1804, allocations: 454.6 kB / 0.6004 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1804, allocations: 8.031 kB / 0.6004 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.924e-05/0.1805, allocations: 38.56 kB / 0.6005 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.1805, allocations: 27.8 kB / 0.6005 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.1807, allocations: 226.6 kB / 0.6007 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.1808, allocations: 11.94 kB / 0.6007 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.1808, allocations: 15.98 kB / 0.6008 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1811, allocations: 157.9 kB / 0.6009 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1811, allocations: 0 / 0.6009 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1811, allocations: 0 / 0.6009 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1811, allocations: 4 kB / 0.6009 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.1813, allocations: 87.78 kB / 0.601 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008279/0.1822, allocations: 0.7395 MB / 0.6017 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.1823, allocations: 50.55 kB / 0.6018 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.176e-05/0.1824, allocations: 32.84 kB / 0.6018 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1824, allocations: 12 kB / 0.6018 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.1827, allocations: 130.6 kB / 0.6019 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1827, allocations: 0 / 0.6019 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.000435/0.1831, allocations: 185.3 kB / 0.6021 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/0.1832, allocations: 136.7 kB / 0.6022 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.1834, allocations: 195.7 kB / 0.6024 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.1834, allocations: 33.7 kB / 0.6025 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.735e-05/0.1835, allocations: 131.8 kB / 0.6026 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.1836, allocations: 35.7 kB / 0.6026 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.1836, allocations: 0 / 0.6026 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1837, allocations: 330.8 kB / 0.6029 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.1838, allocations: 48.34 kB / 0.603 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.184, allocations: 154.3 kB / 0.6031 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.1841, allocations: 55.98 kB / 0.6032 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1841, allocations: 0 / 0.6032 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000366/0.1845, allocations: 213.5 kB / 0.6034 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1845, allocations: 16.08 kB / 0.6034 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1845, allocations: 4 kB / 0.6034 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1846, allocations: 4 kB / 0.6034 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1847, allocations: 35.92 kB / 0.6034 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.1847, allocations: 11.94 kB / 0.6034 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.1848, allocations: 39.67 kB / 0.6035 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.1849, allocations: 12 kB / 0.6035 GB, free: 1.219 MB / 0.4981 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,sampleTrigger.y,$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.0001085/0.185, allocations: 135.7 kB / 0.6036 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.185, allocations: 15.81 kB / 0.6036 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.1851, allocations: 29.33 kB / 0.6037 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1851, allocations: 240 / 0.6037 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.1851, allocations: 0 / 0.6037 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1851, allocations: 7.953 kB / 0.6037 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006897/0.1858, allocations: 0.5211 MB / 0.6042 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1858, allocations: 4 kB / 0.6042 GB, free: 448 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1859, allocations: 19.98 kB / 0.6042 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-06/0.1859, allocations: 11.88 kB / 0.6042 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.1859, allocations: 7.953 kB / 0.6042 GB, free: 408 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.186, allocations: 4 kB / 0.6042 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.186, allocations: 4.25 kB / 0.6042 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004531/0.1864, allocations: 368.2 kB / 0.6046 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3189/0.5053, allocations: 87.14 kB / 0.6047 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.5054, allocations: 1.203 kB / 0.6047 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.5056, allocations: 23.11 kB / 0.6047 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.5057, allocations: 17.77 kB / 0.6047 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.5057, allocations: 6 kB / 0.6047 GB, free: 40.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001158/0.5058, allocations: 139 kB / 0.6049 GB, free: 40.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5059, allocations: 0.5 kB / 0.6049 GB, free: 40.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004684/0.5063, allocations: 31 kB / 0.6049 GB, free: 40.38 MB / 0.4981 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 (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.0006969/0.507, allocations: 0.9097 MB / 0.6058 GB, free: 39.63 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003153/0.5074, allocations: 125.7 kB / 0.6059 GB, free: 39.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5074, allocations: 0 / 0.6059 GB, free: 39.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.5075, allocations: 58.33 kB / 0.6059 GB, free: 39.63 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005279/0.508, allocations: 63.36 kB / 0.606 GB, free: 39.63 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.5097, allocations: 1.116 MB / 0.6071 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.5098, allocations: 0.725 MB / 0.6078 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.988e-05/0.5099, allocations: 17.72 kB / 0.6078 GB, free: 38.34 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.977e-05/0.51, allocations: 53.36 kB / 0.6079 GB, free: 38.33 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.51, allocations: 0 / 0.6079 GB, free: 38.33 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.5242, allocations: 3.569 MB / 0.6114 GB, free: 38.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.5244, allocations: 197.2 kB / 0.6115 GB, free: 37.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.262, allocations: 4 kB / 0.6115 GB, free: 37.91 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: