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.001027/0.001027, allocations: 93.66 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008937/0.0008938, allocations: 179.7 kB / 16.92 MB, free: 6.684 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.439/1.439, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7054/0.7054, allocations: 115.5 MB / 407.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004749/0.0004754, allocations: 8.188 kB / 495.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1785, allocations: 77.54 MB / 0.56 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002026/0.1806, allocations: 1.52 MB / 0.5615 GB, free: 7.418 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009298/0.1815, allocations: 0.5144 MB / 0.562 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1817, allocations: 7.938 kB / 0.562 GB, free: 6.891 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.1818, allocations: 11.86 kB / 0.5621 GB, free: 6.879 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.454e-05/0.1819, allocations: 27.8 kB / 0.5621 GB, free: 6.852 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.1821, allocations: 55.92 kB / 0.5621 GB, free: 6.797 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.1823, allocations: 163.4 kB / 0.5623 GB, free: 6.637 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.1825, allocations: 49.64 kB / 0.5623 GB, free: 6.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.797e-05/0.1826, allocations: 47.72 kB / 0.5624 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.764e-05/0.1827, allocations: 47.7 kB / 0.5624 GB, free: 6.496 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.1827, allocations: 4 kB / 0.5624 GB, free: 6.492 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.1827, allocations: 4 kB / 0.5624 GB, free: 6.488 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.1828, allocations: 19.86 kB / 0.5625 GB, free: 6.469 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.301e-05/0.1829, allocations: 81.31 kB / 0.5625 GB, free: 6.383 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.183, allocations: 127.7 kB / 0.5627 GB, free: 6.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.183, allocations: 0 / 0.5627 GB, free: 6.258 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.183, allocations: 0 / 0.5627 GB, free: 6.258 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1831, allocations: 0 / 0.5627 GB, free: 6.258 MB / 430.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.0006684/0.1837, allocations: 458.8 kB / 0.5631 GB, free: 5.762 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1838, allocations: 12.03 kB / 0.5631 GB, free: 5.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.1838, allocations: 42.73 kB / 0.5631 GB, free: 5.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.1839, allocations: 16.75 kB / 0.5632 GB, free: 5.684 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.1841, allocations: 227.9 kB / 0.5634 GB, free: 5.422 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.1842, allocations: 8.375 kB / 0.5634 GB, free: 5.414 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.1842, allocations: 12.38 kB / 0.5634 GB, free: 5.402 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.1845, allocations: 161.4 kB / 0.5635 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1845, allocations: 8 kB / 0.5636 GB, free: 5.219 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1846, allocations: 4 kB / 0.5636 GB, free: 5.215 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1846, allocations: 4 kB / 0.5636 GB, free: 5.211 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.1848, allocations: 79.88 kB / 0.5636 GB, free: 5.133 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000908/0.1857, allocations: 0.7392 MB / 0.5644 GB, free: 4.328 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.1859, allocations: 58.47 kB / 0.5644 GB, free: 4.262 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.186, allocations: 40.83 kB / 0.5645 GB, free: 4.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.186, allocations: 4 kB / 0.5645 GB, free: 4.215 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.1863, allocations: 127.9 kB / 0.5646 GB, free: 4.066 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.1863, allocations: 4 kB / 0.5646 GB, free: 4.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004967/0.1868, allocations: 181.5 kB / 0.5648 GB, free: 3.879 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.1869, allocations: 132.5 kB / 0.5649 GB, free: 3.719 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1871, allocations: 202.8 kB / 0.5651 GB, free: 3.512 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.1871, allocations: 33.64 kB / 0.5651 GB, free: 3.473 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.1872, allocations: 131.9 kB / 0.5652 GB, free: 3.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.1873, allocations: 43.53 kB / 0.5653 GB, free: 3.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.1873, allocations: 17.72 kB / 0.5653 GB, free: 3.273 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1874, allocations: 330.8 kB / 0.5656 GB, free: 2.941 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.1876, allocations: 51.91 kB / 0.5657 GB, free: 2.891 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.1878, allocations: 150.5 kB / 0.5658 GB, free: 2.691 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.1881, allocations: 214.3 kB / 0.566 GB, free: 2.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1881, allocations: 0 / 0.566 GB, free: 2.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004188/0.1885, allocations: 217.5 kB / 0.5662 GB, free: 2.211 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1886, allocations: 8 kB / 0.5662 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1886, allocations: 4 kB / 0.5662 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1886, allocations: 4 kB / 0.5662 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.1887, allocations: 39.91 kB / 0.5663 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1888, allocations: 15.92 kB / 0.5663 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.1889, allocations: 31.83 kB / 0.5663 GB, free: 2.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.1889, allocations: 12.03 kB / 0.5663 GB, free: 2.098 MB / 430.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.0001239/0.1891, allocations: 137.7 kB / 0.5665 GB, free: 1.953 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.1891, allocations: 15.81 kB / 0.5665 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.193e-05/0.1891, allocations: 21.39 kB / 0.5665 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1892, allocations: 4 kB / 0.5665 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1892, allocations: 0 / 0.5665 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1892, allocations: 0 / 0.5665 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000787/0.19, allocations: 0.533 MB / 0.567 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.19, allocations: 64 / 0.567 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.1901, allocations: 31.92 kB / 0.567 GB, free: 1.293 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1901, allocations: 0 / 0.567 GB, free: 1.293 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.1902, allocations: 4 kB / 0.5671 GB, free: 1.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.1902, allocations: 3.984 kB / 0.5671 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1902, allocations: 7.875 kB / 0.5671 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005122/0.1907, allocations: 368.2 kB / 0.5674 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.419e-05/0.1908, allocations: 97.3 kB / 0.5675 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.1908, allocations: 4 kB / 0.5675 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.191, allocations: 20.03 kB / 0.5675 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.191, allocations: 15.92 kB / 0.5675 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.191, allocations: 7.984 kB / 0.5676 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.1912, allocations: 144.4 kB / 0.5677 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1912, allocations: 0 / 0.5677 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.1915, allocations: 28 kB / 0.5677 GB, free: 0.5664 MB / 430.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.0008363/0.1924, allocations: 0.9171 MB / 0.5686 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.1927, allocations: 127.8 kB / 0.5687 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1927, allocations: 0 / 0.5687 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.1929, allocations: 56.91 kB / 0.5688 GB, free: 15.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005651/0.1934, allocations: 64.92 kB / 0.5688 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.196, allocations: 2.333 MB / 0.5711 GB, free: 12.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1963, allocations: 0.7206 MB / 0.5718 GB, free: 12.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.462e-05/0.1964, allocations: 25.66 kB / 0.5719 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.851e-05/0.1965, allocations: 47.42 kB / 0.5719 GB, free: 12.03 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1965, allocations: 0 / 0.5719 GB, free: 12.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.2169, allocations: 3.575 MB / 0.5754 GB, free: 8.609 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002697/0.2172, allocations: 203.4 kB / 0.5756 GB, free: 8.348 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.05, allocations: 0 / 0.5756 GB, free: 8.348 MB / 446.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)