Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.001003/0.001003, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001029/0.001029, allocations: 195.6 kB / 16.14 MB, free: 6.707 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.32/1.32, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001911/0.001911, allocations: 282.5 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.916/0.916, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 95.91 kB / 0.5946 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1741, allocations: 86.98 MB / 0.6795 GB, free: 1.121 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003207/0.1774, allocations: 1.886 MB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.1783, allocations: 0.5299 MB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.982e-05/0.1784, allocations: 7.938 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.1786, allocations: 16.92 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.166e-05/0.1787, allocations: 28.5 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1789, allocations: 47.95 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.1791, allocations: 168.3 kB / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.1792, allocations: 52.3 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.294e-05/0.1793, allocations: 47.72 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.1794, allocations: 67.58 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.1794, allocations: 4 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.182e-05/0.1795, allocations: 8 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.395e-05/0.1795, allocations: 27.84 kB / 0.6824 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.537e-05/0.1796, allocations: 59.61 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.1797, allocations: 119.6 kB / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1798, allocations: 0 / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1798, allocations: 0 / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1798, allocations: 0 / 0.6825 GB, free: 14.06 MB / 494.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.0007452/0.1805, allocations: 482.6 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1806, allocations: 8.031 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.9e-05/0.1806, allocations: 38.75 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.1807, allocations: 20.73 kB / 0.6831 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.181, allocations: 227.9 kB / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.181, allocations: 12.38 kB / 0.6833 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.181, allocations: 12.38 kB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.1813, allocations: 158 kB / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1813, allocations: 0 / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.1814, allocations: 4 kB / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1814, allocations: 4 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.1816, allocations: 69.56 kB / 0.6835 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008832/0.1825, allocations: 0.7392 MB / 0.6842 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.1827, allocations: 54.48 kB / 0.6843 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.1828, allocations: 32.84 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1828, allocations: 3.984 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.1831, allocations: 122.7 kB / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.1831, allocations: 0 / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004686/0.1836, allocations: 169.5 kB / 0.6846 GB, free: 11.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.1837, allocations: 128.5 kB / 0.6847 GB, free: 11.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.1839, allocations: 211.1 kB / 0.6849 GB, free: 11.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.1839, allocations: 33.64 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.754e-05/0.184, allocations: 123.9 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.184, allocations: 35.7 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.1841, allocations: 45.61 kB / 0.6852 GB, free: 11.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1842, allocations: 330.8 kB / 0.6855 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1843, allocations: 39.97 kB / 0.6855 GB, free: 10.72 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.1846, allocations: 143.5 kB / 0.6856 GB, free: 10.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.1849, allocations: 206.3 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1849, allocations: 0 / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003581/0.1852, allocations: 205.4 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.1853, allocations: 11.94 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1853, allocations: 4 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1853, allocations: 7.938 kB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1854, allocations: 35.91 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1854, allocations: 4 kB / 0.6861 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.1856, allocations: 27.83 kB / 0.6861 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.1856, allocations: 12 kB / 0.6861 GB, free: 9.965 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.0001011/0.1857, allocations: 144.3 kB / 0.6863 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.1857, allocations: 15.81 kB / 0.6863 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.202e-05/0.1858, allocations: 25.39 kB / 0.6863 GB, free: 9.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1858, allocations: 0 / 0.6863 GB, free: 9.773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1858, allocations: 4.25 kB / 0.6863 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1858, allocations: 0 / 0.6863 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006642/0.1865, allocations: 0.5132 MB / 0.6868 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1865, allocations: 0 / 0.6868 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.1866, allocations: 19.92 kB / 0.6868 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1866, allocations: 4 kB / 0.6868 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1866, allocations: 7.984 kB / 0.6869 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1866, allocations: 7.938 kB / 0.6869 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1867, allocations: 0 / 0.6869 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004695/0.1871, allocations: 356.2 kB / 0.6872 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.1872, allocations: 92.92 kB / 0.6873 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.1872, allocations: 4 kB / 0.6873 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1874, allocations: 19.97 kB / 0.6873 GB, free: 8.656 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.1874, allocations: 15.97 kB / 0.6873 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.1875, allocations: 4 kB / 0.6873 GB, free: 8.637 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.1876, allocations: 140.6 kB / 0.6875 GB, free: 8.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1876, allocations: 0 / 0.6875 GB, free: 8.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1879, allocations: 35.84 kB / 0.6875 GB, free: 8.465 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.0007324/0.1886, allocations: 0.8912 MB / 0.6884 GB, free: 7.543 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003053/0.1889, allocations: 123.7 kB / 0.6885 GB, free: 7.422 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.189, allocations: 0 / 0.6885 GB, free: 7.422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1891, allocations: 48.3 kB / 0.6885 GB, free: 7.375 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005302/0.1896, allocations: 61.14 kB / 0.6886 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1921, allocations: 2.306 MB / 0.6908 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.1925, allocations: 0.7245 MB / 0.6916 GB, free: 4.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.066e-05/0.1925, allocations: 21.42 kB / 0.6916 GB, free: 4.051 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.48e-05/0.1926, allocations: 59.34 kB / 0.6916 GB, free: 3.992 MB / 494.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1926, allocations: 0 / 0.6916 GB, free: 3.992 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01441/0.2071, allocations: 3.679 MB / 0.6952 GB, free: 464 kB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002398/0.2073, allocations: 212.5 kB / 0.6954 GB, free: 208 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/1.887, allocations: 4 kB / 0.6954 GB, free: 204 kB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)