Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008364/0.0008363, allocations: 90.72 kB / 16.95 MB, free: 5.539 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.0008307/0.0008307, allocations: 190.2 kB / 17.85 MB, free: 5.219 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.322/1.322, allocations: 223.2 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.2032/0.2032, allocations: 38.09 MB / 331.1 MB, free: 8.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 17.11 kB / 400.7 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 59.15 MB / 459.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008149/0.116, allocations: 7.253 MB / 467.1 MB, free: 144 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00474/0.1208, allocations: 2.997 MB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006769/0.1215, allocations: 43.75 kB / 470.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006399/0.1221, allocations: 222.5 kB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.1238, allocations: 0.7623 MB / 471.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006843/0.1245, allocations: 275.6 kB / 471.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001792/0.1263, allocations: 1.737 MB / 473.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.1277, allocations: 1.122 MB / 474.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007101/0.1284, allocations: 0.5058 MB / 474.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008399/0.1293, allocations: 0.6853 MB / 475.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.1294, allocations: 56 kB / 475.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009269/0.1303, allocations: 0.6123 MB / 476.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004625/0.1308, allocations: 426.9 kB / 476.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.1312, allocations: 257.1 kB / 476.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001669/0.1328, allocations: 1.652 MB / 478.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1329, allocations: 0 / 478.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1329, allocations: 0 / 478.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.1329, allocations: 0 / 478.4 MB, free: 4.727 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002587/0.1355, allocations: 1.352 MB / 479.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1355, allocations: 8.031 kB / 479.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005749/0.1361, allocations: 166.5 kB / 480 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.1373, allocations: 0.7946 MB / 480.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.1375, allocations: 200.8 kB / 481 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.1377, allocations: 115.8 kB / 481.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.1399, allocations: 1.465 MB / 482.5 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.14, allocations: 0 / 482.5 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.195e-05/0.1401, allocations: 40 kB / 482.6 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.1402, allocations: 77.91 kB / 482.7 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.1422, allocations: 1.265 MB / 483.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006515/0.1487, allocations: 5.235 MB / 489.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.1502, allocations: 1.022 MB / 490.2 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.151, allocations: 0.5049 MB / 490.7 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.151, allocations: 12.55 kB / 490.7 MB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.1511, allocations: 43.12 kB / 490.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 4.368e-06/0.1511, allocations: 4 kB / 490.7 MB, free: 7.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005794/0.1569, allocations: 3.122 MB / 493.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.157, allocations: 115.4 kB / 494 MB, free: 4.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008329/0.1578, allocations: 0.6875 MB / 494.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/0.1579, allocations: 37.7 kB / 494.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.1582, allocations: 478.7 kB / 495.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.1584, allocations: 264.2 kB / 495.4 MB, free: 3.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.1585, allocations: 19.98 kB / 495.4 MB, free: 3.164 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.1587, allocations: 390.7 kB / 495.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.1594, allocations: 445.8 kB / 496.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008376/0.1602, allocations: 0.7245 MB / 497 MB, free: 1.492 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003737/0.164, allocations: 1.568 MB / 498.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.164, allocations: 4 kB / 498.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002106/0.1661, allocations: 1.309 MB / 499.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1661, allocations: 8.094 kB / 499.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.1661, allocations: 15.95 kB / 499.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.1664, allocations: 89.61 kB / 500 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008002/0.1672, allocations: 223.7 kB / 0.4885 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1683, allocations: 1.343 MB / 0.4898 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006949/0.169, allocations: 87.89 kB / 0.4899 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/0.1691, allocations: 44 kB / 0.4899 GB, free: 12.63 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006821/0.1698, allocations: 409.4 kB / 0.4903 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.17, allocations: 79.06 kB / 0.4904 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/0.1717, allocations: 1.002 MB / 0.4914 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.1717, allocations: 12 kB / 0.4914 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1717, allocations: 4 kB / 0.4914 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.1718, allocations: 3.984 kB / 0.4914 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.1752, allocations: 2.281 MB / 0.4936 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1753, allocations: 4 kB / 0.4936 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006728/0.1759, allocations: 143.8 kB / 0.4937 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.436e-05/0.176, allocations: 32.83 kB / 0.4938 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.1761, allocations: 16 kB / 0.4938 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009728/0.1771, allocations: 1.284 MB / 0.495 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1771, allocations: 3.984 kB / 0.495 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.1794, allocations: 1.653 MB / 0.4967 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.1798, allocations: 244.1 kB / 0.4969 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.959e-05/0.1799, allocations: 15.98 kB / 0.4969 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004369/0.1803, allocations: 55.95 kB / 0.497 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.1805, allocations: 60.47 kB / 0.497 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.1805, allocations: 16 kB / 0.497 GB, free: 5.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006163/0.1811, allocations: 483 kB / 0.4975 GB, free: 4.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1811, allocations: 0 / 0.4975 GB, free: 4.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000988/0.1821, allocations: 252 kB / 0.4977 GB, free: 4.344 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003582/0.1825, allocations: 175.1 kB / 0.4979 GB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.1844, allocations: 1.246 MB / 0.4991 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1844, allocations: 0 / 0.4991 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008596/0.1852, allocations: 0.6192 MB / 0.4997 GB, free: 2.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.1863, allocations: 218.8 kB / 0.4999 GB, free: 2.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2194/0.4057, allocations: 3.135 MB / 0.503 GB, free: 54.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.4068, allocations: 1.159 MB / 0.5041 GB, free: 54.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004807/0.4073, allocations: 71.3 kB / 0.5042 GB, free: 54.24 MB / 382.1 MB Notification: Performance of SimCode: time 1.502e-06/0.4073, allocations: 0 / 0.5042 GB, free: 54.24 MB / 382.1 MB Notification: Performance of Templates: time 0.03667/0.444, allocations: 20.71 MB / 0.5244 GB, free: 46.59 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.Drives.BLDCCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o] Error 1