Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.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/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/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(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.05666/0.05667, 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.002345/0.002345, allocations: 192.8 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 2.989/2.989, allocations: 205.1 MB / 222.6 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.1101/0.1101, allocations: 7.038 MB / 277 MB, free: 14.43 MB / 238.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: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001965, allocations: 63.91 kB / 335.9 MB, free: 27.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1834, allocations: 48.1 MB / 384 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.014/0.1975, allocations: 4.685 MB / 388.6 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006366/0.2039, allocations: 1.87 MB / 390.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004627/0.2044, allocations: 19.94 kB / 390.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.2059, allocations: 298.5 kB / 390.8 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005921/0.2065, allocations: 206.7 kB / 391 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008009/0.2073, allocations: 327.8 kB / 391.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003044/0.2103, allocations: 2.358 MB / 393.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002226/0.2126, allocations: 1.43 MB / 395.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.2137, allocations: 0.6145 MB / 395.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.2148, allocations: 0.7658 MB / 396.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.215, allocations: 128 kB / 396.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002786/0.2153, allocations: 128 kB / 396.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004361/0.2158, allocations: 338.5 kB / 397.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.2172, allocations: 0.8979 MB / 398 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003901/0.2211, allocations: 3.282 MB / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.2211, allocations: 0 / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2211, allocations: 0 / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.2211, allocations: 0 / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.005031/0.2262, allocations: 2.253 MB / 403.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.005e-05/0.2263, allocations: 8.031 kB / 403.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.2267, allocations: 186.7 kB / 403.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002907/0.2296, allocations: 1.703 MB / 405.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.2297, allocations: 102.8 kB / 405.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002308/0.23, allocations: 124.4 kB / 405.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003835/0.2338, allocations: 1.827 MB / 407.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.687e-05/0.2339, allocations: 7.938 kB / 407.5 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.234, allocations: 52 kB / 407.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/0.2341, allocations: 32 kB / 407.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003121/0.2372, allocations: 1.512 MB / 409.1 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.2495, allocations: 7.133 MB / 416.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004517/0.2541, allocations: 2.973 MB / 419.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.2552, allocations: 0.5423 MB / 419.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.111e-05/0.2553, allocations: 8.547 kB / 419.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.2564, allocations: 0.5549 MB / 420.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 4.078e-06/0.2565, allocations: 0 / 420.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002784/0.2593, allocations: 1.255 MB / 421.5 MB, free: 4.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002316/0.2595, allocations: 162.8 kB / 421.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.2631, allocations: 1.972 MB / 423.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/0.2631, allocations: 37.7 kB / 423.7 MB, free: 2.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009506/0.2641, allocations: 0.7121 MB / 424.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/0.2644, allocations: 209 kB / 424.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/0.2647, allocations: 150.6 kB / 424.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002761/0.265, allocations: 349.9 kB / 425.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000929/0.266, allocations: 433.8 kB / 425.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.2672, allocations: 0.6476 MB / 426.2 MB, free: 40 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4104/0.6776, allocations: 1.964 MB / 428.1 MB, free: 44.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.6777, allocations: 1.969 kB / 428.1 MB, free: 44.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003959/0.6817, allocations: 1.291 MB / 429.4 MB, free: 44.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.6818, allocations: 34.67 kB / 429.5 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.601e-05/0.6818, allocations: 9.656 kB / 429.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.106e-05/0.6819, allocations: 14.06 kB / 429.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.6831, allocations: 214.1 kB / 429.7 MB, free: 44.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.281e-05/0.6831, allocations: 16.2 kB / 429.7 MB, free: 44.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009809/0.6841, allocations: 137.1 kB / 429.9 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.6842, allocations: 36.28 kB / 429.9 MB, free: 44.16 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,rCseriesLinear.rs.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * 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.00212/0.6863, allocations: 0.734 MB / 430.6 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.6866, allocations: 138.5 kB / 430.8 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/0.689, allocations: 0.9917 MB / 431.7 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/0.689, allocations: 7.109 kB / 431.8 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.6891, allocations: 5.219 kB / 431.8 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.6891, allocations: 7.922 kB / 431.8 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007577/0.6967, allocations: 3.036 MB / 434.8 MB, free: 41.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6967, allocations: 0 / 434.8 MB, free: 41.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.6977, allocations: 163.3 kB / 435 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.6977, allocations: 2.812 kB / 435 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.688e-05/0.6978, allocations: 27.48 kB / 435 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.6979, allocations: 2.531 kB / 435 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.6979, allocations: 5.688 kB / 435 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.7022, allocations: 1.568 MB / 436.6 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006266/0.7028, allocations: 304.4 kB / 436.9 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003707/0.7032, allocations: 24.33 kB / 436.9 MB, free: 40.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.7039, allocations: 49.27 kB / 436.9 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.7041, allocations: 47.98 kB / 437 MB, free: 40.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.7042, allocations: 16.78 kB / 437 MB, free: 40.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003225/0.7074, allocations: 1.412 MB / 438.4 MB, free: 40.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7074, allocations: 1.531 kB / 438.4 MB, free: 40.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001427/0.7088, allocations: 293.6 kB / 438.7 MB, free: 40.14 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002785/0.7091, allocations: 134.6 kB / 438.8 MB, free: 40.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002306/0.7114, allocations: 0.9904 MB / 439.8 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.7114, allocations: 1.156 kB / 439.8 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008965/0.7124, allocations: 430.3 kB / 440.2 MB, free: 39.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.7139, allocations: 311.1 kB / 440.5 MB, free: 39.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006365/0.7203, allocations: 3.859 MB / 444.4 MB, free: 37.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001581/0.7219, allocations: 1.667 MB / 446.1 MB, free: 35.85 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.7222, allocations: 87.56 kB / 446.2 MB, free: 35.84 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.7222, allocations: 0 / 446.2 MB, free: 35.84 MB / 318.1 MB Notification: Performance of Templates: time 0.04333/0.7656, allocations: 23.45 MB / 469.6 MB, free: 13.07 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.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 OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.ImpedanceCalcHelperMain.o OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.ImpedanceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppElectricalEnergyStorage_ElectricalEnergyStorage.Examples.ImpedanceCalcHelperMain.o] Error 1