Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008069/0.0008069, allocations: 100.2 kB / 15.71 MB, free: 452 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.001101/0.001101, allocations: 179.5 kB / 16.58 MB, free: 6.422 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.461/1.461, allocations: 223.2 MB / 240.6 MB, free: 5.41 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.552/2.552, allocations: 390.4 MB / 0.6662 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003956/0.0003957, allocations: 8 kB / 0.8154 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9332/0.9337, allocations: 142.3 MB / 0.9544 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003018/0.9367, allocations: 2.123 MB / 0.9565 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.9379, allocations: 0.7295 MB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.948e-05/0.938, allocations: 6 kB / 0.9572 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.9382, allocations: 20.16 kB / 0.9572 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.9385, allocations: 88.81 kB / 0.9573 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.9388, allocations: 87.48 kB / 0.9574 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.9391, allocations: 236.2 kB / 0.9576 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000329/0.9395, allocations: 174.7 kB / 0.9578 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.943e-05/0.9396, allocations: 62.89 kB / 0.9578 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.9399, allocations: 91.55 kB / 0.9579 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/0.9399, allocations: 10.59 kB / 0.9579 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.9401, allocations: 56.48 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.961e-05/0.9401, allocations: 43.55 kB / 0.958 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.9402, allocations: 49.39 kB / 0.9581 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.9404, allocations: 169.6 kB / 0.9582 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.9404, allocations: 1.031 kB / 0.9582 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.537e-06/0.9404, allocations: 3.938 kB / 0.9582 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.9405, allocations: 3.938 kB / 0.9582 GB, free: 5.133 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006061/0.9411, allocations: 426 kB / 0.9587 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.9411, allocations: 8.125 kB / 0.9587 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/0.9415, allocations: 50.42 kB / 0.9587 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.9418, allocations: 204.3 kB / 0.9589 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.9418, allocations: 13.52 kB / 0.9589 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.481e-05/0.9418, allocations: 13.22 kB / 0.9589 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/0.9422, allocations: 227.9 kB / 0.9591 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.9422, allocations: 0 / 0.9591 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.9423, allocations: 6.875 kB / 0.9592 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.923e-05/0.9423, allocations: 23.22 kB / 0.9592 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.9426, allocations: 142.2 kB / 0.9593 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009935/0.9436, allocations: 1.126 MB / 0.9604 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.552e-05/0.9437, allocations: 41.69 kB / 0.9605 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/0.9437, allocations: 23.81 kB / 0.9605 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.9437, allocations: 0 / 0.9605 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.9437, allocations: 35.88 kB / 0.9605 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.9438, allocations: 0 / 0.9605 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.000195/0.944, allocations: 75.62 kB / 0.9606 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.944, allocations: 51.41 kB / 0.9606 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.9441, allocations: 173.5 kB / 0.9608 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.9441, allocations: 25.7 kB / 0.9608 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.9442, allocations: 149 kB / 0.961 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.9442, allocations: 13.19 kB / 0.961 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-06/0.9443, allocations: 5.312 kB / 0.961 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.901e-05/0.9443, allocations: 325.5 kB / 0.9613 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.891e-05/0.9444, allocations: 22.98 kB / 0.9613 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.648e-05/0.9445, allocations: 96.81 kB / 0.9614 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.426e-05/0.9445, allocations: 29.86 kB / 0.9614 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.9446, allocations: 5.375 kB / 0.9614 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001973/0.9448, allocations: 136.3 kB / 0.9616 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.453e-05/0.9449, allocations: 155 kB / 0.9617 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.9449, allocations: 7.109 kB / 0.9617 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.9449, allocations: 3.594 kB / 0.9617 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.945, allocations: 28.67 kB / 0.9618 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.945, allocations: 2.594 kB / 0.9618 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.9451, allocations: 17.84 kB / 0.9618 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.9451, allocations: 10.08 kB / 0.9618 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.138e-06/0.9451, allocations: 8.172 kB / 0.9618 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001482/0.9453, allocations: 100.2 kB / 0.9619 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.9453, allocations: 2.625 kB / 0.9619 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.668e-06/0.9453, allocations: 2.688 kB / 0.9619 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.538e-05/0.9454, allocations: 28.48 kB / 0.9619 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.9454, allocations: 3.219 kB / 0.9619 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.437e-05/0.9455, allocations: 16.91 kB / 0.9619 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.9455, allocations: 5.188 kB / 0.9619 GB, free: 1.684 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001051/0.9456, allocations: 213.1 kB / 0.9621 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.9456, allocations: 24.86 kB / 0.9622 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.9457, allocations: 16.52 kB / 0.9622 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.9457, allocations: 0 / 0.9622 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.9457, allocations: 1.031 kB / 0.9622 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.9457, allocations: 0 / 0.9622 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003648/0.9461, allocations: 470.1 kB / 0.9626 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.9461, allocations: 0.9688 kB / 0.9626 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-05/0.9461, allocations: 6.156 kB / 0.9626 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.9461, allocations: 5.812 kB / 0.9626 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.9461, allocations: 4.969 kB / 0.9627 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.9461, allocations: 6.641 kB / 0.9627 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.9462, allocations: 0 / 0.9627 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.9463, allocations: 114.8 kB / 0.9628 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.9463, allocations: 94.28 kB / 0.9629 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.9464, allocations: 1 kB / 0.9629 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.229e-05/0.9464, allocations: 5.938 kB / 0.9629 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.9464, allocations: 6.125 kB / 0.9629 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.9464, allocations: 1.906 kB / 0.9629 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.44e-05/0.9465, allocations: 125.7 kB / 0.963 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9465, allocations: 7.938 kB / 0.963 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003451/0.9469, allocations: 51.97 kB / 0.963 GB, free: 0.6133 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001012/0.947, allocations: 99.33 kB / 0.9631 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002167/0.9472, allocations: 108.5 kB / 0.9632 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.9472, allocations: 4.812 kB / 0.9633 GB, free: 484 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.038e-05/0.9473, allocations: 17.53 kB / 0.9633 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.9475, allocations: 26.34 kB / 0.9633 GB, free: 464 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005058/0.9481, allocations: 346 kB / 0.9636 GB, free: 160 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.9485, allocations: 0.7252 MB / 0.9643 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.9485, allocations: 17.66 kB / 0.9643 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.9485, allocations: 0 / 0.9643 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of Templates: time 0.003548/0.9521, allocations: 1.439 MB / 0.9658 GB, free: 14.7 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensorCalcHelperMain.o OMCppBuildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensorCalcHelperMain.o] Error 1