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.001001/0.001001, 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.0009103/0.0009106, allocations: 176.6 kB / 16.58 MB, free: 6.402 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.661/1.661, 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/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06016/0.06016, allocations: 7.035 MB / 278.1 MB, free: 14.27 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.0005421/0.0005421, allocations: 12 kB / 337.6 MB, free: 27.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 49.08 MB / 386.7 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004842/0.1118, allocations: 4.015 MB / 390.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002905/0.1148, allocations: 1.544 MB / 392.2 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000326/0.1151, allocations: 19.94 kB / 392.3 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006364/0.1158, allocations: 246.6 kB / 392.5 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.1162, allocations: 194.7 kB / 392.7 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.1166, allocations: 155.8 kB / 392.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00195/0.1186, allocations: 2.063 MB / 394.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.1199, allocations: 1.08 MB / 396 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006007/0.1205, allocations: 0.5015 MB / 396.5 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005984/0.1211, allocations: 0.6218 MB / 397.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.1213, allocations: 92 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.1214, allocations: 88 kB / 397.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.1216, allocations: 258.8 kB / 397.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.122, allocations: 408.8 kB / 397.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.1245, allocations: 3.172 MB / 401.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1245, allocations: 3.938 kB / 401.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.604e-06/0.1245, allocations: 0 / 401.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.515e-05/0.1245, allocations: 0 / 401.1 MB, free: 11.89 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.003329/0.1279, allocations: 1.879 MB / 403 MB, free: 9.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1279, allocations: 12.03 kB / 403 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.1283, allocations: 181.8 kB / 403.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/0.1305, allocations: 1.671 MB / 404.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-05/0.1306, allocations: 102.5 kB / 405 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.1308, allocations: 128 kB / 405.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003182/0.134, allocations: 1.831 MB / 406.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.1341, allocations: 0 / 406.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.1342, allocations: 48 kB / 407 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.1343, allocations: 32 kB / 407 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002602/0.1369, allocations: 1.52 MB / 408.5 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009262/0.1461, allocations: 7.165 MB / 415.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002981/0.1492, allocations: 2.969 MB / 418.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008497/0.15, allocations: 0.5432 MB / 419.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.1501, allocations: 8.562 kB / 419.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008967/0.151, allocations: 0.5588 MB / 419.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.855e-06/0.151, allocations: 4 kB / 419.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002135/0.1531, allocations: 1.262 MB / 421 MB, free: 7.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.1533, allocations: 174.7 kB / 421.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/0.1559, allocations: 1.961 MB / 423.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.119e-05/0.156, allocations: 37.7 kB / 423.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006572/0.1567, allocations: 0.7082 MB / 423.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.1569, allocations: 217 kB / 424.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.157, allocations: 12 kB / 424.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1571, allocations: 341.9 kB / 424.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/0.1578, allocations: 437.8 kB / 424.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.1586, allocations: 0.6554 MB / 425.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008484/0.1595, allocations: 0.5638 MB / 426.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.1595, allocations: 4 kB / 426.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002005/0.1615, allocations: 1.295 MB / 427.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.1615, allocations: 40.81 kB / 427.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1616, allocations: 11.83 kB / 427.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.1616, allocations: 8 kB / 427.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008451/0.1624, allocations: 236.3 kB / 427.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/0.1625, allocations: 15.94 kB / 427.7 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006602/0.1631, allocations: 150.6 kB / 427.8 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.1632, allocations: 28 kB / 427.9 MB, free: 144 kB / 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 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2235/0.3867, allocations: 0.7252 MB / 428.6 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/0.3872, allocations: 134.3 kB / 428.7 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/0.3895, allocations: 1.009 MB / 429.7 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.3895, allocations: 6.25 kB / 429.7 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.3895, allocations: 3.406 kB / 429.8 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.3896, allocations: 3.656 kB / 429.8 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005622/0.3952, allocations: 3.038 MB / 432.8 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3952, allocations: 5.469 kB / 432.8 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000813/0.396, allocations: 179.8 kB / 433 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.3961, allocations: 6.156 kB / 433 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.3961, allocations: 23.02 kB / 433 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.884e-06/0.3961, allocations: 3.422 kB / 433 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3961, allocations: 1.125 kB / 433 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002533/0.3987, allocations: 1.576 MB / 434.6 MB, free: 41.65 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000523/0.3992, allocations: 305.5 kB / 434.9 MB, free: 41.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.3994, allocations: 26.16 kB / 434.9 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.3999, allocations: 56.05 kB / 435 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.4001, allocations: 48.28 kB / 435 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.863e-05/0.4001, allocations: 17.47 kB / 435 MB, free: 41.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002629/0.4027, allocations: 1.403 MB / 436.4 MB, free: 40.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4028, allocations: 0 / 436.4 MB, free: 40.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00109/0.4039, allocations: 296.2 kB / 436.7 MB, free: 40.78 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 (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.0001747/0.404, allocations: 128.4 kB / 436.8 MB, free: 40.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.4061, allocations: 1.002 MB / 437.8 MB, free: 40.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4062, allocations: 1.438 kB / 437.8 MB, free: 40.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008248/0.407, allocations: 430.1 kB / 438.3 MB, free: 40.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.4082, allocations: 310.3 kB / 438.6 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/0.4139, allocations: 3.783 MB / 442.4 MB, free: 37.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.4151, allocations: 1.661 MB / 444 MB, free: 36.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003872/0.4155, allocations: 91.88 kB / 444.1 MB, free: 36.88 MB / 318.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4155, allocations: 0 / 444.1 MB, free: 36.88 MB / 318.1 MB Notification: Performance of Templates: time 0.0307/0.4462, allocations: 23.24 MB / 467.3 MB, free: 16.1 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.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 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