Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7748/0.7748, allocations: 143.8 MB / 159.1 MB, free: 6.469 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 183.3 kB / 192 MB, free: 6.703 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 225.7 MB / 450.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008399/0.0008399, allocations: 107.5 kB / 0.5211 GB, free: 1.652 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001708/0.001709, allocations: 292.8 kB / 0.6025 GB, free: 49.28 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004235, allocations: 16.77 kB / 0.6948 GB, free: 59.17 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1725, allocations: 82.45 MB / 0.7753 GB, free: 14.34 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002275/0.1748, allocations: 1.508 MB / 0.7768 GB, free: 12.82 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008762/0.1757, allocations: 0.5029 MB / 0.7773 GB, free: 12.32 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1758, allocations: 11.94 kB / 0.7773 GB, free: 12.3 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.176, allocations: 19.8 kB / 0.7773 GB, free: 12.29 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 7.302e-05/0.1761, allocations: 15.86 kB / 0.7773 GB, free: 12.27 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.1763, allocations: 59.88 kB / 0.7774 GB, free: 12.21 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.1765, allocations: 163.5 kB / 0.7775 GB, free: 12.05 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1767, allocations: 53.91 kB / 0.7776 GB, free: 12 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.521e-05/0.1768, allocations: 43.73 kB / 0.7776 GB, free: 11.95 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.589e-05/0.1768, allocations: 39.72 kB / 0.7777 GB, free: 11.91 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.1769, allocations: 4 kB / 0.7777 GB, free: 11.91 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.705e-05/0.1769, allocations: 4 kB / 0.7777 GB, free: 11.91 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 3.943e-05/0.1769, allocations: 27.8 kB / 0.7777 GB, free: 11.88 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 9.181e-05/0.177, allocations: 93.22 kB / 0.7778 GB, free: 11.78 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.1772, allocations: 111.5 kB / 0.7779 GB, free: 11.67 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.1772, allocations: 4 kB / 0.7779 GB, free: 11.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1773, allocations: 0 / 0.7779 GB, free: 11.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1773, allocations: 0 / 0.7779 GB, free: 11.67 MB / 458.7 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.0007151/0.178, allocations: 458.7 kB / 0.7783 GB, free: 11.17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.178, allocations: 12.03 kB / 0.7783 GB, free: 11.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.418e-05/0.1781, allocations: 20.75 kB / 0.7784 GB, free: 11.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1784, allocations: 224 kB / 0.7786 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.1784, allocations: 8.375 kB / 0.7786 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.1784, allocations: 16.31 kB / 0.7786 GB, free: 10.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.1788, allocations: 158.9 kB / 0.7787 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1788, allocations: 0 / 0.7787 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.1788, allocations: 8 kB / 0.7788 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.1788, allocations: 4 kB / 0.7788 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00023/0.1791, allocations: 75.88 kB / 0.7788 GB, free: 10.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000962/0.18, allocations: 0.7547 MB / 0.7796 GB, free: 9.777 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001492/0.1802, allocations: 50.55 kB / 0.7796 GB, free: 9.719 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.1803, allocations: 40.83 kB / 0.7797 GB, free: 9.676 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.1803, allocations: 4 kB / 0.7797 GB, free: 9.672 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.1806, allocations: 134.8 kB / 0.7798 GB, free: 9.516 MB / 458.7 MB Notification: Performance of pre-optimization done (n=11): time 2.695e-06/0.1806, allocations: 0 / 0.7798 GB, free: 9.516 MB / 458.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004996/0.1811, allocations: 181.3 kB / 0.78 GB, free: 9.332 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.328e-05/0.1812, allocations: 144.7 kB / 0.7801 GB, free: 9.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.1814, allocations: 198.9 kB / 0.7803 GB, free: 8.957 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.1815, allocations: 29.7 kB / 0.7803 GB, free: 8.922 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.1816, allocations: 123.8 kB / 0.7804 GB, free: 8.797 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.1816, allocations: 35.55 kB / 0.7805 GB, free: 8.762 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.1816, allocations: 4 kB / 0.7805 GB, free: 8.758 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1818, allocations: 326.8 kB / 0.7808 GB, free: 8.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.1819, allocations: 43.97 kB / 0.7808 GB, free: 8.387 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.1821, allocations: 156.4 kB / 0.781 GB, free: 8.184 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.1824, allocations: 210.3 kB / 0.7812 GB, free: 7.926 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1824, allocations: 0 / 0.7812 GB, free: 7.926 MB / 458.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003901/0.1828, allocations: 221.3 kB / 0.7814 GB, free: 7.703 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1829, allocations: 8 kB / 0.7814 GB, free: 7.695 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1829, allocations: 4 kB / 0.7814 GB, free: 7.691 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.1829, allocations: 4 kB / 0.7814 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.183, allocations: 39.92 kB / 0.7814 GB, free: 7.648 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.183, allocations: 4.25 kB / 0.7814 GB, free: 7.645 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1832, allocations: 39.97 kB / 0.7815 GB, free: 7.605 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.1832, allocations: 15.94 kB / 0.7815 GB, free: 7.59 MB / 458.7 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 ($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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.1833, allocations: 139.1 kB / 0.7816 GB, free: 7.445 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.1834, allocations: 15.81 kB / 0.7816 GB, free: 7.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/0.1834, allocations: 21.39 kB / 0.7817 GB, free: 7.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1834, allocations: 4 kB / 0.7817 GB, free: 7.406 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1834, allocations: 0 / 0.7817 GB, free: 7.406 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1834, allocations: 4 kB / 0.7817 GB, free: 7.402 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007276/0.1842, allocations: 0.5287 MB / 0.7822 GB, free: 6.816 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1842, allocations: 0 / 0.7822 GB, free: 6.816 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.1843, allocations: 27.98 kB / 0.7822 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1843, allocations: 288 / 0.7822 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1843, allocations: 4 kB / 0.7822 GB, free: 6.785 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1844, allocations: 0 / 0.7822 GB, free: 6.785 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1844, allocations: 7.938 kB / 0.7822 GB, free: 6.777 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.1848, allocations: 372.1 kB / 0.7826 GB, free: 6.391 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.1849, allocations: 105 kB / 0.7827 GB, free: 6.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.185, allocations: 0 / 0.7827 GB, free: 6.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.1851, allocations: 15.98 kB / 0.7827 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.1852, allocations: 15.92 kB / 0.7827 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.1852, allocations: 8 kB / 0.7827 GB, free: 6.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.1853, allocations: 140.4 kB / 0.7829 GB, free: 6.094 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1853, allocations: 0 / 0.7829 GB, free: 6.094 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002832/0.1856, allocations: 31.94 kB / 0.7829 GB, free: 6.062 MB / 458.7 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.0001279/0.1857, allocations: 119.2 kB / 0.783 GB, free: 5.938 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003204/0.1861, allocations: 124.1 kB / 0.7831 GB, free: 5.816 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1861, allocations: 0 / 0.7831 GB, free: 5.816 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1862, allocations: 55.91 kB / 0.7832 GB, free: 5.762 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.1868, allocations: 62.78 kB / 0.7832 GB, free: 5.703 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006953/0.1875, allocations: 410.7 kB / 0.7836 GB, free: 5.266 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.1879, allocations: 0.7167 MB / 0.7843 GB, free: 4.523 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.188, allocations: 17.55 kB / 0.7843 GB, free: 4.504 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.966e-05/0.188, allocations: 23.42 kB / 0.7844 GB, free: 4.48 MB / 458.7 MB Notification: Performance of SimCode: time 2.5e-07/0.188, allocations: 0 / 0.7844 GB, free: 4.48 MB / 458.7 MB Notification: Performance of Templates: time 0.005004/0.193, allocations: 1.805 MB / 0.7861 GB, free: 2.695 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)