Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009185/0.0009185, allocations: 103 kB / 15.71 MB, free: 460 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.001426/0.001426, allocations: 172.1 kB / 16.58 MB, free: 6.078 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.433/1.433, allocations: 223.2 MB / 240.6 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.525/2.525, allocations: 390.4 MB / 0.6662 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 12 kB / 0.8154 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8567/0.8571, allocations: 142.3 MB / 0.9544 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008295/0.858, allocations: 376.5 kB / 0.9548 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.8591, allocations: 1.032 MB / 0.9558 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.609e-05/0.8591, allocations: 1.562 kB / 0.9558 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.334e-05/0.8591, allocations: 0 / 0.9558 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.913e-05/0.8592, allocations: 9.547 kB / 0.9558 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.8594, allocations: 27.33 kB / 0.9558 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.571e-05/0.8595, allocations: 39.91 kB / 0.9559 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.564e-05/0.8596, allocations: 19.52 kB / 0.9559 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.558e-05/0.8597, allocations: 13.36 kB / 0.9559 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.934e-05/0.8597, allocations: 17.77 kB / 0.9559 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.8597, allocations: 2.625 kB / 0.9559 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.691e-05/0.8598, allocations: 14.89 kB / 0.9559 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.8598, allocations: 2.281 kB / 0.9559 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.8599, allocations: 36.3 kB / 0.956 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.155e-05/0.8599, allocations: 40.88 kB / 0.956 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.86, allocations: 0 / 0.956 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.645e-06/0.86, allocations: 0 / 0.956 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.86, allocations: 5.062 kB / 0.956 GB, free: 6.781 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004363/0.8604, allocations: 353.9 kB / 0.9564 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.8605, allocations: 8.688 kB / 0.9564 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.731e-05/0.8605, allocations: 10.11 kB / 0.9564 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.063e-05/0.8606, allocations: 169.3 kB / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.8606, allocations: 2.344 kB / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.8606, allocations: 2.125 kB / 0.9565 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.8608, allocations: 66.14 kB / 0.9566 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.8608, allocations: 0 / 0.9566 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.8609, allocations: 1 kB / 0.9566 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.8609, allocations: 4.875 kB / 0.9566 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.861, allocations: 54.84 kB / 0.9567 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003713/0.8614, allocations: 272 kB / 0.9569 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.8616, allocations: 56.69 kB / 0.957 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.098e-05/0.8617, allocations: 34.27 kB / 0.957 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.8617, allocations: 0 / 0.957 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.8619, allocations: 75.42 kB / 0.9571 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.8619, allocations: 0.875 kB / 0.9571 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0003654/0.8622, allocations: 127.3 kB / 0.9572 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.8623, allocations: 56.81 kB / 0.9573 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.983e-05/0.8624, allocations: 110.3 kB / 0.9574 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.806e-06/0.8624, allocations: 26.77 kB / 0.9574 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.013e-05/0.8624, allocations: 89.55 kB / 0.9575 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.8624, allocations: 14.66 kB / 0.9575 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.8625, allocations: 7.938 kB / 0.9575 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.221e-05/0.8625, allocations: 315.9 kB / 0.9578 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.701e-05/0.8626, allocations: 29.2 kB / 0.9578 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.811e-05/0.8627, allocations: 51.22 kB / 0.9579 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.953e-05/0.8628, allocations: 35.61 kB / 0.9579 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.8628, allocations: 1.25 kB / 0.9579 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002398/0.8631, allocations: 111.1 kB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.8631, allocations: 5.406 kB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.8631, allocations: 0 / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.8631, allocations: 6.734 kB / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.8632, allocations: 19.86 kB / 0.958 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.8632, allocations: 1.375 kB / 0.958 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.8633, allocations: 10.97 kB / 0.9581 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.8633, allocations: 10.89 kB / 0.9581 GB, free: 4.828 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.392e-05/0.8634, allocations: 112.6 kB / 0.9582 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.8634, allocations: 2.938 kB / 0.9582 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.8637, allocations: 106.5 kB / 0.9583 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.8637, allocations: 7.953 kB / 0.9583 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.8637, allocations: 1.25 kB / 0.9583 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.8637, allocations: 0 / 0.9583 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.864, allocations: 349.8 kB / 0.9586 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.864, allocations: 5 kB / 0.9586 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.8641, allocations: 17.02 kB / 0.9586 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.8641, allocations: 3.953 kB / 0.9586 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/0.8641, allocations: 5.094 kB / 0.9586 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.8641, allocations: 0 / 0.9586 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.8642, allocations: 1.125 kB / 0.9586 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.8644, allocations: 190.3 kB / 0.9588 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.963e-05/0.8644, allocations: 87 kB / 0.9589 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.8644, allocations: 5.016 kB / 0.9589 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.876e-05/0.8645, allocations: 5.562 kB / 0.9589 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.8646, allocations: 6.172 kB / 0.9589 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.8646, allocations: 6.219 kB / 0.9589 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.023e-05/0.8646, allocations: 88.83 kB / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8646, allocations: 0 / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002397/0.8649, allocations: 8.875 kB / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001332/0.865, allocations: 109.8 kB / 0.9591 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002253/0.8652, allocations: 66.89 kB / 0.9592 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8652, allocations: 0 / 0.9592 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.68e-05/0.8653, allocations: 37.66 kB / 0.9592 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.8656, allocations: 8.656 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002667/0.8659, allocations: 156.6 kB / 0.9594 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.866, allocations: 0.6833 MB / 0.9601 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.866, allocations: 10.09 kB / 0.9601 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.866, allocations: 0 / 0.9601 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of Templates: time 0.002412/0.8685, allocations: 0.8212 MB / 0.9609 GB, free: 2.48 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.o OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelayCalcHelperMain.o] Error 1