Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007844/0.0007842, allocations: 102.6 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.001251/0.001251, allocations: 173.5 kB / 16.58 MB, free: 6.348 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.925/1.925, allocations: 205.4 MB / 222.8 MB, free: 5.641 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.786/1.786, allocations: 292.7 MB / 0.5505 GB, free: 14.57 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.000594/0.000594, allocations: 18.41 kB / 0.6744 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3192, allocations: 116.3 MB / 0.7879 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001176/0.3205, allocations: 405.5 kB / 0.7883 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3221, allocations: 1.052 MB / 0.7894 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.636e-05/0.3221, allocations: 0 / 0.7894 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.467e-05/0.3222, allocations: 3.938 kB / 0.7894 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.385e-05/0.3223, allocations: 4 kB / 0.7894 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.3226, allocations: 43.89 kB / 0.7894 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.3227, allocations: 55.84 kB / 0.7895 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.3228, allocations: 11.98 kB / 0.7895 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.404e-05/0.3229, allocations: 23.91 kB / 0.7895 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.823e-05/0.323, allocations: 27.91 kB / 0.7895 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.323, allocations: 4 kB / 0.7895 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.937e-05/0.3231, allocations: 15.98 kB / 0.7895 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.257e-05/0.3232, allocations: 15.92 kB / 0.7895 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.3232, allocations: 33.7 kB / 0.7896 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.3234, allocations: 55.88 kB / 0.7896 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3234, allocations: 0 / 0.7896 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.968e-06/0.3234, allocations: 0 / 0.7896 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3234, allocations: 7.938 kB / 0.7896 GB, free: 10.19 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006878/0.3241, allocations: 371.5 kB / 0.79 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3241, allocations: 8.031 kB / 0.79 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.108e-05/0.3242, allocations: 7.906 kB / 0.79 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.3244, allocations: 178.9 kB / 0.7902 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.3244, allocations: 4 kB / 0.7902 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.3244, allocations: 11.94 kB / 0.7902 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.3247, allocations: 81.64 kB / 0.7903 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.3247, allocations: 4 kB / 0.7903 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3247, allocations: 0 / 0.7903 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.3247, allocations: 4 kB / 0.7903 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.3249, allocations: 59.95 kB / 0.7903 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.3255, allocations: 328.6 kB / 0.7907 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.3257, allocations: 78.55 kB / 0.7907 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.3259, allocations: 56.83 kB / 0.7908 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.3259, allocations: 0 / 0.7908 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.3262, allocations: 99.48 kB / 0.7909 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 3.126e-06/0.3262, allocations: 112 / 0.7909 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004961/0.3267, allocations: 197.4 kB / 0.7911 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.3267, allocations: 51.41 kB / 0.7911 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3269, allocations: 113.8 kB / 0.7912 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3269, allocations: 33.7 kB / 0.7913 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.416e-05/0.327, allocations: 84.38 kB / 0.7913 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.327, allocations: 27.64 kB / 0.7914 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.327, allocations: 4 kB / 0.7914 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3272, allocations: 322.8 kB / 0.7917 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3273, allocations: 39.97 kB / 0.7917 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.3275, allocations: 70.53 kB / 0.7918 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.3276, allocations: 51.86 kB / 0.7918 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3276, allocations: 0 / 0.7918 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003105/0.3279, allocations: 157.4 kB / 0.792 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.328, allocations: 4 kB / 0.792 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.328, allocations: 384 / 0.792 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.328, allocations: 4 kB / 0.792 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.3281, allocations: 28.05 kB / 0.792 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3281, allocations: 0 / 0.792 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.174e-05/0.3282, allocations: 19.86 kB / 0.792 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.3283, allocations: 4 kB / 0.792 GB, free: 7.5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001262/0.3284, allocations: 129.7 kB / 0.7922 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.3284, allocations: 7.891 kB / 0.7922 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003786/0.3288, allocations: 157.9 kB / 0.7923 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3288, allocations: 4 kB / 0.7923 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3288, allocations: 0 / 0.7923 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3288, allocations: 0 / 0.7923 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005508/0.3294, allocations: 418.3 kB / 0.7927 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3294, allocations: 0 / 0.7927 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.491e-05/0.3295, allocations: 19.98 kB / 0.7927 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3295, allocations: 0 / 0.7927 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3295, allocations: 0 / 0.7927 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3295, allocations: 4 kB / 0.7927 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3295, allocations: 4 kB / 0.7927 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.3298, allocations: 239.4 kB / 0.793 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.3299, allocations: 92.95 kB / 0.7931 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3299, allocations: 4 kB / 0.7931 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.366e-05/0.33, allocations: 11.98 kB / 0.7931 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.3301, allocations: 7.984 kB / 0.7931 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.3301, allocations: 4 kB / 0.7931 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.238e-05/0.3302, allocations: 87.53 kB / 0.7932 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.3302, allocations: 288 / 0.7932 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002458/0.3304, allocations: 27.94 kB / 0.7932 GB, free: 6.199 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001636/0.3306, allocations: 107.2 kB / 0.7933 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.3309, allocations: 115.8 kB / 0.7934 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3309, allocations: 0 / 0.7934 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.331, allocations: 60.03 kB / 0.7935 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.3313, allocations: 10.8 kB / 0.7935 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003913/0.3317, allocations: 191.1 kB / 0.7937 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.332, allocations: 0.6926 MB / 0.7943 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.332, allocations: 11.44 kB / 0.7944 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.332, allocations: 0 / 0.7944 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of Templates: time 0.00293/0.335, allocations: 1.069 MB / 0.7954 GB, free: 3.883 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHoldCalcHelperMain.o OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHoldCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHoldCalcHelperMain.o] Error 1