Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_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.00178/0.00178, allocations: 105.6 kB / 16.4 MB, free: 6.508 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.002149/0.002149, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7366/0.7366, allocations: 115.3 MB / 406.5 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.84 kB / 0.5572 GB, free: 32.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1734, allocations: 76.18 MB / 0.6316 GB, free: 4.996 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.003208/0.1767, allocations: 1.802 MB / 0.6334 GB, free: 3.18 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1778, allocations: 0.5454 MB / 0.6339 GB, free: 2.629 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.178, allocations: 4 kB / 0.6339 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.1781, allocations: 23.73 kB / 0.6339 GB, free: 2.602 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 9.688e-05/0.1783, allocations: 27.72 kB / 0.6339 GB, free: 2.574 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002421/0.1785, allocations: 67.86 kB / 0.634 GB, free: 2.508 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.1788, allocations: 175.4 kB / 0.6342 GB, free: 2.336 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.179, allocations: 49.58 kB / 0.6342 GB, free: 2.285 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.931e-05/0.1791, allocations: 51.78 kB / 0.6343 GB, free: 2.234 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.574e-05/0.1792, allocations: 59.64 kB / 0.6343 GB, free: 2.176 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.1792, allocations: 16 kB / 0.6343 GB, free: 2.16 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.134e-05/0.1793, allocations: 12 kB / 0.6344 GB, free: 2.148 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.816e-05/0.1793, allocations: 23.92 kB / 0.6344 GB, free: 2.125 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 7.461e-05/0.1794, allocations: 71.53 kB / 0.6344 GB, free: 2.055 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.1796, allocations: 126.3 kB / 0.6346 GB, free: 1.934 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1796, allocations: 4 kB / 0.6346 GB, free: 1.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1796, allocations: 0 / 0.6346 GB, free: 1.93 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1796, allocations: 0 / 0.6346 GB, free: 1.93 MB / 478.1 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.0007427/0.1804, allocations: 479.5 kB / 0.635 GB, free: 1.414 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1804, allocations: 12.03 kB / 0.635 GB, free: 1.402 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.244e-05/0.1805, allocations: 46.73 kB / 0.6351 GB, free: 1.348 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.1805, allocations: 16.75 kB / 0.6351 GB, free: 1.332 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.1808, allocations: 235.9 kB / 0.6353 GB, free: 1.062 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1808, allocations: 8.375 kB / 0.6353 GB, free: 1.055 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.1809, allocations: 12.38 kB / 0.6353 GB, free: 1.043 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.1811, allocations: 155.1 kB / 0.6355 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1812, allocations: 0 / 0.6355 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1812, allocations: 8 kB / 0.6355 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1812, allocations: 3.984 kB / 0.6355 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.1814, allocations: 75.88 kB / 0.6356 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008856/0.1823, allocations: 0.7314 MB / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.1825, allocations: 54.48 kB / 0.6363 GB, free: 15.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.1826, allocations: 32.83 kB / 0.6364 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1826, allocations: 8.141 kB / 0.6364 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.1829, allocations: 126.7 kB / 0.6365 GB, free: 15.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1829, allocations: 0 / 0.6365 GB, free: 15.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004693/0.1833, allocations: 165.3 kB / 0.6367 GB, free: 15.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.1834, allocations: 140.4 kB / 0.6368 GB, free: 15.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.1836, allocations: 215 kB / 0.637 GB, free: 15.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.1836, allocations: 29.64 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.1837, allocations: 123.9 kB / 0.6371 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.1838, allocations: 39.45 kB / 0.6372 GB, free: 14.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.1838, allocations: 37.7 kB / 0.6372 GB, free: 14.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.184, allocations: 330.8 kB / 0.6375 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1841, allocations: 39.97 kB / 0.6376 GB, free: 14.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.1843, allocations: 147.2 kB / 0.6377 GB, free: 14.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.1847, allocations: 206.3 kB / 0.6379 GB, free: 14.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1847, allocations: 0 / 0.6379 GB, free: 14.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004199/0.1851, allocations: 205.4 kB / 0.6381 GB, free: 13.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1851, allocations: 7.984 kB / 0.6381 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1851, allocations: 4 kB / 0.6381 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.1852, allocations: 4 kB / 0.6381 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.1853, allocations: 35.92 kB / 0.6382 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1853, allocations: 8 kB / 0.6382 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.1855, allocations: 23.83 kB / 0.6382 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.1855, allocations: 12 kB / 0.6382 GB, free: 13.82 MB / 494.1 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 0.0001312/0.1856, allocations: 143.5 kB / 0.6383 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.1857, allocations: 19.81 kB / 0.6384 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.1857, allocations: 17.41 kB / 0.6384 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.1858, allocations: 3.984 kB / 0.6384 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.1858, allocations: 4 kB / 0.6384 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1858, allocations: 0 / 0.6384 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000822/0.1866, allocations: 0.5132 MB / 0.6389 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.1866, allocations: 4 kB / 0.6389 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.1868, allocations: 23.92 kB / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1868, allocations: 288 / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.1868, allocations: 4 kB / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1868, allocations: 3.938 kB / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1868, allocations: 0 / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005004/0.1873, allocations: 364.1 kB / 0.6393 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.1874, allocations: 97.23 kB / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.1874, allocations: 0 / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.1876, allocations: 27.95 kB / 0.6394 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.1877, allocations: 15.98 kB / 0.6394 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1877, allocations: 4 kB / 0.6394 GB, free: 12.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.1879, allocations: 148.2 kB / 0.6395 GB, free: 12.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1879, allocations: 0 / 0.6395 GB, free: 12.32 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.1882, allocations: 31.94 kB / 0.6396 GB, free: 12.29 MB / 494.1 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 0.0008567/0.1891, allocations: 0.9031 MB / 0.6405 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00032/0.1894, allocations: 111.8 kB / 0.6406 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1894, allocations: 0 / 0.6406 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.1896, allocations: 51.91 kB / 0.6406 GB, free: 11.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.1901, allocations: 61.75 kB / 0.6407 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002642/0.1928, allocations: 2.266 MB / 0.6429 GB, free: 8.691 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.1931, allocations: 0.7281 MB / 0.6436 GB, free: 7.938 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.103e-05/0.1932, allocations: 13.55 kB / 0.6436 GB, free: 7.926 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.32e-05/0.1933, allocations: 51.42 kB / 0.6437 GB, free: 7.875 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1933, allocations: 0 / 0.6437 GB, free: 7.875 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.2146, allocations: 4.102 MB / 0.6477 GB, free: 3.875 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/7.918, allocations: 7.344 kB / 0.6477 GB, free: 3.871 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)