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.001048/0.001048, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001037/0.001038, allocations: 177.3 kB / 15.94 MB, free: 228 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.36/1.36, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.062/1.062, allocations: 143.3 MB / 434.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.0003351, allocations: 12 kB / 0.5159 GB, free: 11.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1814, allocations: 83.41 MB / 0.5974 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.001932/0.1834, allocations: 1.475 MB / 0.5988 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007988/0.1842, allocations: 0.5108 MB / 0.5993 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.1843, allocations: 3.938 kB / 0.5993 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.078e-05/0.1844, allocations: 3.938 kB / 0.5993 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.1845, allocations: 31.88 kB / 0.5993 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001824/0.1847, allocations: 51.94 kB / 0.5994 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1849, allocations: 119.7 kB / 0.5995 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.185, allocations: 37.83 kB / 0.5995 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.808e-05/0.1851, allocations: 39.8 kB / 0.5996 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.396e-05/0.1852, allocations: 47.75 kB / 0.5996 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.1852, allocations: 7.938 kB / 0.5996 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.1852, allocations: 7.938 kB / 0.5996 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.464e-05/0.1853, allocations: 19.92 kB / 0.5996 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.1853, allocations: 53.62 kB / 0.5997 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.1854, allocations: 92.03 kB / 0.5998 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1854, allocations: 0 / 0.5998 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1855, allocations: 0 / 0.5998 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.1855, allocations: 0 / 0.5998 GB, free: 5.277 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.0006578/0.1861, allocations: 454.6 kB / 0.6002 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1862, allocations: 12.03 kB / 0.6002 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.244e-05/0.1862, allocations: 46.48 kB / 0.6003 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.1863, allocations: 19.77 kB / 0.6003 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.1865, allocations: 226.6 kB / 0.6005 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.1866, allocations: 8 kB / 0.6005 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.1866, allocations: 12 kB / 0.6005 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1869, allocations: 157.9 kB / 0.6007 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.1869, allocations: 0 / 0.6007 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1869, allocations: 8 kB / 0.6007 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1869, allocations: 0 / 0.6007 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.1872, allocations: 87.83 kB / 0.6008 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007904/0.188, allocations: 0.7356 MB / 0.6015 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.1881, allocations: 54.48 kB / 0.6015 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.1881, allocations: 3.984 kB / 0.6015 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.1884, allocations: 130.7 kB / 0.6017 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.1884, allocations: 0 / 0.6017 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004627/0.1889, allocations: 181.4 kB / 0.6018 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.189, allocations: 132.5 kB / 0.602 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.1892, allocations: 199.8 kB / 0.6022 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.1892, allocations: 33.7 kB / 0.6022 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.1893, allocations: 131.8 kB / 0.6023 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.1893, allocations: 27.56 kB / 0.6023 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-06/0.1893, allocations: 7.938 kB / 0.6024 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1894, allocations: 330.8 kB / 0.6027 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.1896, allocations: 44.34 kB / 0.6027 GB, free: 2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1897, allocations: 151.3 kB / 0.6029 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.1899, allocations: 59.92 kB / 0.6029 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1899, allocations: 0 / 0.6029 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000381/0.1903, allocations: 221.5 kB / 0.6031 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1903, allocations: 8 kB / 0.6031 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1903, allocations: 8.25 kB / 0.6031 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1903, allocations: 4 kB / 0.6031 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.1905, allocations: 39.92 kB / 0.6032 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.1905, allocations: 11.89 kB / 0.6032 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.1906, allocations: 35.73 kB / 0.6032 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1907, allocations: 8 kB / 0.6032 GB, free: 1.406 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.0001142/0.1908, allocations: 139.6 kB / 0.6034 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.1908, allocations: 20.05 kB / 0.6034 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.887e-05/0.1909, allocations: 25.38 kB / 0.6034 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.1909, allocations: 4 kB / 0.6034 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1909, allocations: 0 / 0.6034 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1909, allocations: 7.953 kB / 0.6034 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007242/0.1916, allocations: 0.5212 MB / 0.6039 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1916, allocations: 3.938 kB / 0.6039 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.1918, allocations: 19.98 kB / 0.604 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.1918, allocations: 8 kB / 0.604 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1918, allocations: 3.953 kB / 0.604 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1918, allocations: 0 / 0.604 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1918, allocations: 4 kB / 0.604 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005431/0.1924, allocations: 413.2 kB / 0.6044 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.1924, allocations: 92.92 kB / 0.6044 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.1925, allocations: 8.031 kB / 0.6045 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.1926, allocations: 15.98 kB / 0.6045 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.3342/0.5268, allocations: 8.25 kB / 0.6045 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.5269, allocations: 6.906 kB / 0.6045 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001644/0.5271, allocations: 141.6 kB / 0.6046 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5271, allocations: 0.5 kB / 0.6046 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005248/0.5276, allocations: 25.98 kB / 0.6046 GB, free: 40.77 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.0008717/0.5285, allocations: 1.158 MB / 0.6058 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.5289, allocations: 125.8 kB / 0.6059 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5289, allocations: 2.5 kB / 0.6059 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.529, allocations: 55.59 kB / 0.606 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.5295, allocations: 63.03 kB / 0.606 GB, free: 39.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.5315, allocations: 3.497 MB / 0.6094 GB, free: 36.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.5317, allocations: 0.7311 MB / 0.6101 GB, free: 36.11 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.715e-05/0.5318, allocations: 16.06 kB / 0.6102 GB, free: 36.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.006e-05/0.5319, allocations: 55.45 kB / 0.6102 GB, free: 36.1 MB / 0.4981 GB Notification: Performance of SimCode: time 4.3e-07/0.5319, allocations: 0 / 0.6102 GB, free: 36.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.5468, allocations: 3.561 MB / 0.6137 GB, free: 35.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002434/0.5471, allocations: 191.3 kB / 0.6139 GB, free: 35.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.329, allocations: 3.125 kB / 0.6139 GB, free: 35.68 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: