Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009305/0.009305, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001551/0.001551, allocations: 192 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.1 MB / 222.7 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.779/1.779, allocations: 292.3 MB / 0.5491 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 72.2 kB / 0.6715 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3376, allocations: 114.5 MB / 0.7833 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003607/0.3413, allocations: 1.881 MB / 0.7852 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3424, allocations: 0.5814 MB / 0.7857 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3425, allocations: 4 kB / 0.7857 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3427, allocations: 15.8 kB / 0.7857 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.556e-05/0.3428, allocations: 19.86 kB / 0.7858 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.3431, allocations: 59.88 kB / 0.7858 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002295/0.3433, allocations: 163.5 kB / 0.786 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.3435, allocations: 45.66 kB / 0.786 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.896e-05/0.3436, allocations: 47.72 kB / 0.7861 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.242e-05/0.3437, allocations: 59.64 kB / 0.7861 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.3437, allocations: 4 kB / 0.7861 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.398e-05/0.3438, allocations: 8 kB / 0.7861 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.3438, allocations: 23.91 kB / 0.7862 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.961e-05/0.3439, allocations: 63.55 kB / 0.7862 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.3441, allocations: 92.06 kB / 0.7863 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.3441, allocations: 8 kB / 0.7863 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3441, allocations: 0 / 0.7863 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.3441, allocations: 0 / 0.7863 GB, free: 10.93 MB / 0.6075 GB 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.0008447/0.345, allocations: 470.7 kB / 0.7868 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.345, allocations: 12.03 kB / 0.7868 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.19e-05/0.3451, allocations: 20.69 kB / 0.7868 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/0.3455, allocations: 223.9 kB / 0.787 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.3455, allocations: 16.31 kB / 0.787 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.3455, allocations: 12.38 kB / 0.787 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.3459, allocations: 146.2 kB / 0.7872 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3459, allocations: 0 / 0.7872 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.346, allocations: 8 kB / 0.7872 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.346, allocations: 0 / 0.7872 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.3462, allocations: 75.83 kB / 0.7873 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.3474, allocations: 0.7469 MB / 0.788 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.3475, allocations: 46.55 kB / 0.788 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3476, allocations: 32.84 kB / 0.7881 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3477, allocations: 0 / 0.7881 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.3481, allocations: 130.7 kB / 0.7882 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.3481, allocations: 0 / 0.7882 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0005668/0.3486, allocations: 161.6 kB / 0.7883 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.3488, allocations: 136.5 kB / 0.7885 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.3491, allocations: 207.4 kB / 0.7887 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.3491, allocations: 29.7 kB / 0.7887 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.3492, allocations: 136 kB / 0.7888 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.3493, allocations: 27.56 kB / 0.7888 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.3494, allocations: 45.61 kB / 0.7889 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002826/0.3497, allocations: 338.8 kB / 0.7892 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.3498, allocations: 35.97 kB / 0.7892 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.3501, allocations: 148.2 kB / 0.7894 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.3505, allocations: 202.3 kB / 0.7896 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3505, allocations: 4 kB / 0.7896 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004537/0.3509, allocations: 205 kB / 0.7898 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.351, allocations: 8.938 kB / 0.7898 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.351, allocations: 4 kB / 0.7898 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.351, allocations: 4 kB / 0.7898 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.3512, allocations: 40.41 kB / 0.7898 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3512, allocations: 4 kB / 0.7898 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.3513, allocations: 27.83 kB / 0.7899 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.3513, allocations: 12 kB / 0.7899 GB, free: 6.883 MB / 0.6075 GB 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.0001688/0.3515, allocations: 140.3 kB / 0.79 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.3516, allocations: 15.81 kB / 0.79 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.365e-05/0.3516, allocations: 21.39 kB / 0.79 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3516, allocations: 4 kB / 0.7901 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3517, allocations: 0 / 0.7901 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.3517, allocations: 4 kB / 0.7901 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000834/0.3525, allocations: 0.5212 MB / 0.7906 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3525, allocations: 0 / 0.7906 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.3526, allocations: 19.98 kB / 0.7906 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3527, allocations: 0 / 0.7906 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.3527, allocations: 8 kB / 0.7906 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.3527, allocations: 3.984 kB / 0.7906 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3527, allocations: 7.938 kB / 0.7906 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.3533, allocations: 356.4 kB / 0.7909 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.3534, allocations: 96.83 kB / 0.791 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.3535, allocations: 4 kB / 0.791 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.3536, allocations: 12.12 kB / 0.7911 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/0.3537, allocations: 19.91 kB / 0.7911 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.3537, allocations: 7.984 kB / 0.7911 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001433/0.3539, allocations: 136.6 kB / 0.7912 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3539, allocations: 0 / 0.7912 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003365/0.3542, allocations: 32 kB / 0.7912 GB, free: 5.383 MB / 0.6075 GB 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.0002003/0.3544, allocations: 111.1 kB / 0.7913 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003331/0.3548, allocations: 112.4 kB / 0.7915 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.3548, allocations: 4.312 kB / 0.7915 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.355, allocations: 51.91 kB / 0.7915 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.3555, allocations: 62.8 kB / 0.7916 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007632/0.3563, allocations: 416.1 kB / 0.792 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004699/0.3568, allocations: 0.7245 MB / 0.7927 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.3569, allocations: 15.44 kB / 0.7927 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.3569, allocations: 3.938 kB / 0.7927 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of Templates: time 0.004626/0.3615, allocations: 2.116 MB / 0.7948 GB, free: 1.727 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Utilities.Math.Examples.IntegratorWithResetCalcHelperMain.o OMCppBuildings_8_Buildings.Utilities.Math.Examples.IntegratorWithResetCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Utilities.Math.Examples.IntegratorWithResetCalcHelperMain.o] Error 1