Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 101.5 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.001216/0.001216, allocations: 176.5 kB / 16.58 MB, free: 6.047 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.456/1.456, allocations: 223.2 MB / 240.6 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.689/2.689, allocations: 436.7 MB / 0.7113 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003259, allocations: 8 kB / 0.8717 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8894/0.8897, allocations: 153.7 MB / 1.022 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005188/0.895, allocations: 3.898 MB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003559/0.8986, allocations: 2.039 MB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000333/0.8989, allocations: 11.94 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.8992, allocations: 63.42 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000736/0.9, allocations: 262.6 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008626/0.9008, allocations: 287.4 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009502/0.9018, allocations: 0.8409 MB / 1.029 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.9031, allocations: 0.722 MB / 1.03 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000382/0.9035, allocations: 242.9 kB / 1.03 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000493/0.904, allocations: 298.8 kB / 1.03 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.595e-05/0.904, allocations: 24 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004395/0.9045, allocations: 199.7 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.9046, allocations: 143.5 kB / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.9048, allocations: 137.3 kB / 1.031 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007407/0.9055, allocations: 0.7383 MB / 1.031 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.9056, allocations: 0 / 1.031 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.27e-06/0.9056, allocations: 4 kB / 1.031 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.9056, allocations: 0 / 1.031 GB, free: 7.137 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001571/0.9072, allocations: 0.8518 MB / 1.032 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.9072, allocations: 15.98 kB / 1.032 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006384/0.9079, allocations: 127.1 kB / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005973/0.9085, allocations: 429.8 kB / 1.033 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.779e-05/0.9085, allocations: 48.94 kB / 1.033 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.463e-05/0.9086, allocations: 52 kB / 1.033 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.9098, allocations: 0.6886 MB / 1.034 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.9098, allocations: 7.984 kB / 1.034 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/0.9099, allocations: 27.97 kB / 1.034 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.948e-05/0.9099, allocations: 52.97 kB / 1.034 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.911, allocations: 0.562 MB / 1.034 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003519/0.9145, allocations: 2.916 MB / 1.037 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.9155, allocations: 0.5654 MB / 1.038 GB, free: 432 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.916, allocations: 265.3 kB / 1.038 GB, free: 160 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005848/0.9166, allocations: 0.5661 MB / 1.038 GB, free: 15.46 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006723/0.9173, allocations: 402.3 kB / 1.039 GB, free: 15.05 MB / 0.795 GB Notification: Performance of pre-optimization done (n=46): time 2.074e-06/0.9173, allocations: 0 / 1.039 GB, free: 15.05 MB / 0.795 GB Notification: Performance of matching and sorting (n=46): time 0.001477/0.9188, allocations: 0.7497 MB / 1.039 GB, free: 14.29 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.9188, allocations: 81.11 kB / 1.04 GB, free: 14.2 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004235/0.9193, allocations: 365.6 kB / 1.04 GB, free: 13.83 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/0.9194, allocations: 45.7 kB / 1.04 GB, free: 13.78 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.9196, allocations: 288.4 kB / 1.04 GB, free: 13.49 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.9197, allocations: 142.1 kB / 1.04 GB, free: 13.35 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.9198, allocations: 16 kB / 1.04 GB, free: 13.33 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.9199, allocations: 358.8 kB / 1.041 GB, free: 12.97 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/0.9204, allocations: 233 kB / 1.041 GB, free: 12.74 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005619/0.921, allocations: 362.6 kB / 1.041 GB, free: 12.35 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004889/0.9215, allocations: 293.7 kB / 1.042 GB, free: 12.05 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.9215, allocations: 0 / 1.042 GB, free: 12.05 MB / 0.795 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001233/0.9227, allocations: 0.6872 MB / 1.042 GB, free: 11.36 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.9229, allocations: 193.1 kB / 1.042 GB, free: 11.12 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.9229, allocations: 7.984 kB / 1.042 GB, free: 11.11 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.9229, allocations: 4 kB / 1.042 GB, free: 11.11 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.9235, allocations: 111.8 kB / 1.043 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.9235, allocations: 4 kB / 1.043 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004209/0.9239, allocations: 71.58 kB / 1.043 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.924, allocations: 27.98 kB / 1.043 GB, free: 10.9 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.634e-06/0.924, allocations: 4 kB / 1.043 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001008/0.925, allocations: 0.58 MB / 1.043 GB, free: 10.31 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.925, allocations: 7.938 kB / 1.043 GB, free: 10.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.925, allocations: 12.05 kB / 1.043 GB, free: 10.29 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.9254, allocations: 103.8 kB / 1.043 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.9254, allocations: 11.94 kB / 1.043 GB, free: 10.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000344/0.9258, allocations: 71.48 kB / 1.043 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.9258, allocations: 20 kB / 1.043 GB, free: 10.09 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0003541/0.9262, allocations: 303.2 kB / 1.044 GB, free: 9.781 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/0.9263, allocations: 43.53 kB / 1.044 GB, free: 9.738 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.9274, allocations: 0.5815 MB / 1.044 GB, free: 9.148 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.9274, allocations: 11.95 kB / 1.044 GB, free: 9.137 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.9274, allocations: 0 / 1.044 GB, free: 9.137 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.9274, allocations: 3.984 kB / 1.044 GB, free: 9.133 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000715/0.9281, allocations: 0.6297 MB / 1.045 GB, free: 8.453 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.9281, allocations: 0 / 1.045 GB, free: 8.453 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.9286, allocations: 99.84 kB / 1.045 GB, free: 8.355 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.9287, allocations: 0 / 1.045 GB, free: 8.355 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.085e-05/0.9287, allocations: 15.98 kB / 1.045 GB, free: 8.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.9287, allocations: 7.938 kB / 1.045 GB, free: 8.332 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.9287, allocations: 7.953 kB / 1.045 GB, free: 8.324 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.9301, allocations: 0.8823 MB / 1.046 GB, free: 7.418 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.9304, allocations: 176.5 kB / 1.046 GB, free: 7.227 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.9304, allocations: 11.98 kB / 1.046 GB, free: 7.215 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002893/0.9307, allocations: 39.95 kB / 1.046 GB, free: 7.176 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.9309, allocations: 51.88 kB / 1.046 GB, free: 7.125 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.9309, allocations: 16 kB / 1.046 GB, free: 7.109 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002775/0.9312, allocations: 259.2 kB / 1.046 GB, free: 6.863 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9312, allocations: 0 / 1.046 GB, free: 6.863 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007527/0.932, allocations: 271.1 kB / 1.047 GB, free: 6.598 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002134/0.9322, allocations: 131.2 kB / 1.047 GB, free: 6.461 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001614/0.9338, allocations: 0.9678 MB / 1.048 GB, free: 5.473 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9338, allocations: 0.9375 kB / 1.048 GB, free: 5.473 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.9343, allocations: 283.5 kB / 1.048 GB, free: 5.195 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/0.9351, allocations: 159.2 kB / 1.048 GB, free: 5.039 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.9374, allocations: 1.317 MB / 1.05 GB, free: 3.688 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.9379, allocations: 0.899 MB / 1.05 GB, free: 2.758 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.9381, allocations: 47.42 kB / 1.05 GB, free: 2.711 MB / 0.795 GB Notification: Performance of SimCode: time 1.022e-06/0.9381, allocations: 0 / 1.05 GB, free: 2.711 MB / 0.795 GB Notification: Performance of Templates: time 0.0125/0.9506, allocations: 7.923 MB / 1.058 GB, free: 10.84 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBatteryCalcHelperMain.o OMCppBuildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBatteryCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBatteryCalcHelperMain.o] Error 1