Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.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(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterDCin.i|meterDCin.p|meterDCin.v|meterDCout.i|meterDCout.p|meterDCout.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008826/0.0008827, allocations: 97.33 kB / 16.96 MB, free: 5.676 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.001066/0.001066, allocations: 183.2 kB / 17.84 MB, free: 5.324 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.343/1.343, allocations: 223.3 MB / 241.9 MB, free: 14.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1838/0.1838, allocations: 38.1 MB / 331.1 MB, free: 8.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 8 kB / 400.7 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1071, allocations: 59.17 MB / 459.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.00759/0.1147, allocations: 6.403 MB / 466.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003798/0.1186, allocations: 1.839 MB / 468.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00049/0.1191, allocations: 35.81 kB / 468.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006243/0.1197, allocations: 206.5 kB / 468.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000893/0.1206, allocations: 377.9 kB / 468.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.1212, allocations: 183.8 kB / 468.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.1223, allocations: 1.156 MB / 470 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004727/0.1228, allocations: 329.8 kB / 470.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005378/0.1234, allocations: 370.4 kB / 470.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006434/0.124, allocations: 438.5 kB / 471.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.527e-05/0.1241, allocations: 39.94 kB / 471.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.384e-05/0.1242, allocations: 40 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.1244, allocations: 223.4 kB / 471.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.1246, allocations: 169.3 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000695/0.1253, allocations: 0.8064 MB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1253, allocations: 8 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1253, allocations: 0 / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.1254, allocations: 0 / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001737/0.1271, allocations: 0.9197 MB / 473.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.1272, allocations: 8.031 kB / 473.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.1273, allocations: 71.16 kB / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1283, allocations: 0.6242 MB / 474.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.1285, allocations: 104.7 kB / 474.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.456e-05/0.1286, allocations: 63.98 kB / 474.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.1298, allocations: 0.7499 MB / 475 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.1298, allocations: 3.938 kB / 475 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.215e-05/0.1299, allocations: 28 kB / 475 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.1299, allocations: 16 kB / 475 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.1311, allocations: 0.6245 MB / 475.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003245/0.1344, allocations: 2.475 MB / 478.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008406/0.1352, allocations: 425.2 kB / 478.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003919/0.1356, allocations: 199.1 kB / 478.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.1357, allocations: 8.281 kB / 478.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004231/0.1361, allocations: 247.2 kB / 479 MB, free: 3.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.134e-06/0.1361, allocations: 3.938 kB / 479 MB, free: 3.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002665/0.1388, allocations: 0.8668 MB / 479.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.352e-05/0.1389, allocations: 140.4 kB / 480 MB, free: 2.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.1393, allocations: 401.9 kB / 480.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.1394, allocations: 29.7 kB / 480.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.1396, allocations: 316 kB / 480.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1397, allocations: 126.3 kB / 480.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/0.1397, allocations: 8 kB / 480.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1399, allocations: 354.8 kB / 481.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.1401, allocations: 128.8 kB / 481.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.1405, allocations: 246 kB / 481.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003212/0.1408, allocations: 164.7 kB / 481.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1408, allocations: 3.984 kB / 481.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009362/0.1418, allocations: 0.5075 MB / 482.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1418, allocations: 8 kB / 482.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1418, allocations: 0 / 482.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004622/0.1423, allocations: 156.9 kB / 482.4 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.1426, allocations: 75.84 kB / 482.5 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.1456, allocations: 2.045 MB / 484.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003215/0.1459, allocations: 59.5 kB / 484.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.146, allocations: 12 kB / 484.6 MB, free: 14.04 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003474/0.1463, allocations: 247.8 kB / 484.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.1464, allocations: 51.39 kB / 484.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.1476, allocations: 478.6 kB / 485.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1476, allocations: 11.94 kB / 485.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1476, allocations: 3.984 kB / 485.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1476, allocations: 0 / 485.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008261/0.1484, allocations: 0.6784 MB / 486 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.1485, allocations: 4 kB / 486 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.1487, allocations: 47.95 kB / 486.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/0.1492, allocations: 144.7 kB / 486.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1492, allocations: 8 kB / 486.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/0.1519, allocations: 2.022 MB / 488.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1519, allocations: 3.938 kB / 488.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.1533, allocations: 0.6997 MB / 489 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.1535, allocations: 148.5 kB / 489.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.1535, allocations: 8 kB / 489.1 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.1537, allocations: 19.98 kB / 489.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.1539, allocations: 35.88 kB / 489.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.1539, allocations: 16 kB / 489.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003232/0.1542, allocations: 279.1 kB / 489.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 489.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006123/0.1549, allocations: 163.4 kB / 489.6 MB, free: 8.738 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001568/0.155, allocations: 118.8 kB / 489.7 MB, free: 8.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009343/0.156, allocations: 0.502 MB / 490.2 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.156, allocations: 0 / 490.2 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000519/0.1565, allocations: 339.4 kB / 490.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.1571, allocations: 141.5 kB / 490.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.1593, allocations: 1.581 MB / 492.3 MB, free: 6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.1598, allocations: 0.9289 MB / 493.2 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.698e-05/0.1599, allocations: 43.38 kB / 493.3 MB, free: 5 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1599, allocations: 0 / 493.3 MB, free: 5 MB / 366.1 MB Notification: Performance of Templates: time 0.0137/0.1736, allocations: 10.18 MB / 0.4916 GB, free: 10.85 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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 OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.ChopperCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.ChopperCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.ChopperCalcHelperMain.o] Error 1