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.001626/0.001625, 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.001847/0.001847, 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.774/1.774, 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.7174/0.7174, allocations: 115.3 MB / 406.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 65.84 kB / 0.5572 GB, free: 32.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.184, allocations: 76.17 MB / 0.6316 GB, free: 4.898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.00482/0.1889, allocations: 1.819 MB / 0.6334 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1905, allocations: 0.5377 MB / 0.6339 GB, free: 2.523 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003265/0.1908, allocations: 4 kB / 0.6339 GB, free: 2.52 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.1911, allocations: 23.72 kB / 0.6339 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.1914, allocations: 23.69 kB / 0.6339 GB, free: 2.473 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1919, allocations: 71.91 kB / 0.634 GB, free: 2.402 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.1924, allocations: 171.4 kB / 0.6342 GB, free: 2.234 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1927, allocations: 53.58 kB / 0.6342 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.1929, allocations: 51.78 kB / 0.6343 GB, free: 2.129 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.1931, allocations: 59.64 kB / 0.6343 GB, free: 2.07 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.1931, allocations: 12 kB / 0.6343 GB, free: 2.059 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.21e-05/0.1932, allocations: 12 kB / 0.6343 GB, free: 2.047 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-05/0.1932, allocations: 31.84 kB / 0.6344 GB, free: 2.016 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1934, allocations: 63.61 kB / 0.6344 GB, free: 1.953 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.1937, allocations: 138.3 kB / 0.6346 GB, free: 1.82 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.1937, allocations: 0 / 0.6346 GB, free: 1.82 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.1937, allocations: 0 / 0.6346 GB, free: 1.82 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.1937, allocations: 3.938 kB / 0.6346 GB, free: 1.816 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.0009343/0.1947, allocations: 471.5 kB / 0.635 GB, free: 1.309 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.1947, allocations: 12.03 kB / 0.635 GB, free: 1.297 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.631e-05/0.1948, allocations: 46.73 kB / 0.6351 GB, free: 1.242 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/0.1949, allocations: 16.75 kB / 0.6351 GB, free: 1.227 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.1953, allocations: 227.9 kB / 0.6353 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.1953, allocations: 8.375 kB / 0.6353 GB, free: 0.957 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.1954, allocations: 12.38 kB / 0.6353 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.1957, allocations: 163.5 kB / 0.6355 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.1958, allocations: 0 / 0.6355 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.1958, allocations: 4 kB / 0.6355 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1958, allocations: 7.922 kB / 0.6355 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.1961, allocations: 75.89 kB / 0.6356 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.1973, allocations: 0.7392 MB / 0.6363 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1975, allocations: 50.48 kB / 0.6363 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1977, allocations: 28.84 kB / 0.6364 GB, free: 15.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.1977, allocations: 7.984 kB / 0.6364 GB, free: 15.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.198, allocations: 126.7 kB / 0.6365 GB, free: 15.63 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/0.198, allocations: 0 / 0.6365 GB, free: 15.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006179/0.1986, allocations: 165.3 kB / 0.6367 GB, free: 15.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.1987, allocations: 132.8 kB / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.199, allocations: 210.8 kB / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.199, allocations: 29.7 kB / 0.637 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1991, allocations: 132.1 kB / 0.6371 GB, free: 14.92 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.1991, allocations: 35.47 kB / 0.6372 GB, free: 14.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.1992, allocations: 37.7 kB / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1994, allocations: 334.8 kB / 0.6375 GB, free: 14.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.1995, allocations: 39.97 kB / 0.6376 GB, free: 14.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.1997, allocations: 140.4 kB / 0.6377 GB, free: 14.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.2001, allocations: 210.3 kB / 0.6379 GB, free: 14.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2001, allocations: 0 / 0.6379 GB, free: 14.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004272/0.2005, allocations: 209.4 kB / 0.6381 GB, free: 13.81 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2005, allocations: 4 kB / 0.6381 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2005, allocations: 4 kB / 0.6381 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.2006, allocations: 8 kB / 0.6381 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.2007, allocations: 36.16 kB / 0.6382 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2007, allocations: 4 kB / 0.6382 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.2009, allocations: 31.83 kB / 0.6382 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.2009, allocations: 8 kB / 0.6382 GB, free: 13.71 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.0001257/0.201, allocations: 148.3 kB / 0.6383 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.2011, allocations: 15.81 kB / 0.6383 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.2011, allocations: 21.39 kB / 0.6384 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2012, allocations: 4 kB / 0.6384 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2012, allocations: 0 / 0.6384 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2012, allocations: 0 / 0.6384 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008275/0.202, allocations: 0.5132 MB / 0.6389 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.202, allocations: 4 kB / 0.6389 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.2022, allocations: 20.2 kB / 0.6389 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2022, allocations: 0 / 0.6389 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.2022, allocations: 11.98 kB / 0.6389 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2022, allocations: 3.938 kB / 0.6389 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2022, allocations: 0 / 0.6389 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006011/0.2028, allocations: 372.1 kB / 0.6393 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.2029, allocations: 92.86 kB / 0.6394 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.2029, allocations: 0 / 0.6394 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.2031, allocations: 23.97 kB / 0.6394 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.278e-05/0.2032, allocations: 11.98 kB / 0.6394 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.2032, allocations: 11.98 kB / 0.6394 GB, free: 12.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001331/0.2034, allocations: 144.2 kB / 0.6395 GB, free: 12.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2034, allocations: 0 / 0.6395 GB, free: 12.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.2037, allocations: 31.94 kB / 0.6396 GB, free: 12.19 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.000888/0.2046, allocations: 0.8927 MB / 0.6404 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000352/0.205, allocations: 115.8 kB / 0.6406 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.205, allocations: 4 kB / 0.6406 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.2052, allocations: 47.91 kB / 0.6406 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005953/0.2058, allocations: 65.95 kB / 0.6407 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.2089, allocations: 2.27 MB / 0.6429 GB, free: 8.582 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.2094, allocations: 0.7281 MB / 0.6436 GB, free: 7.828 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.879e-05/0.2095, allocations: 13.55 kB / 0.6436 GB, free: 7.816 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.028e-05/0.2096, allocations: 51.42 kB / 0.6437 GB, free: 7.766 MB / 494.1 MB Notification: Performance of SimCode: time 1.924e-06/0.2096, allocations: 0 / 0.6437 GB, free: 7.766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5429/0.7525, allocations: 4.102 MB / 0.6477 GB, free: 3.766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.82/15.57, allocations: 7.219 kB / 0.6477 GB, free: 3.762 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)