Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007181/0.0007182, allocations: 95.59 kB / 16.95 MB, free: 5.941 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.0007387/0.0007388, allocations: 185.5 kB / 17.84 MB, free: 5.609 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.325/1.325, allocations: 223.3 MB / 241.9 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.1 MB / 331.1 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 9.594 kB / 400.7 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1238, allocations: 59.17 MB / 459.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007616/0.1315, allocations: 6.385 MB / 466.3 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005533/0.1371, allocations: 2.756 MB / 469 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008099/0.138, allocations: 51.69 kB / 469.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007687/0.1388, allocations: 222.6 kB / 469.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.1403, allocations: 0.5677 MB / 469.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007822/0.1411, allocations: 259.6 kB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.1427, allocations: 1.328 MB / 471.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.1439, allocations: 0.7716 MB / 472.2 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.1445, allocations: 390.4 kB / 472.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00072/0.1452, allocations: 0.5022 MB / 473.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.169e-05/0.1453, allocations: 40 kB / 473.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004821/0.1458, allocations: 271.5 kB / 473.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.1461, allocations: 279.3 kB / 473.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.1462, allocations: 185.3 kB / 473.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.1474, allocations: 1.06 MB / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1474, allocations: 0 / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1474, allocations: 0 / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1474, allocations: 0 / 474.9 MB, free: 8.289 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002018/0.1495, allocations: 1.012 MB / 475.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1495, allocations: 8.031 kB / 475.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005896/0.1501, allocations: 130.9 kB / 476 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.1513, allocations: 0.6429 MB / 476.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.1514, allocations: 83.66 kB / 476.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.1516, allocations: 71.89 kB / 476.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1531, allocations: 0.953 MB / 477.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1532, allocations: 4 kB / 477.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.583e-05/0.1533, allocations: 31.98 kB / 477.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.97e-05/0.1534, allocations: 57.28 kB / 477.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.1547, allocations: 0.774 MB / 478.7 MB, free: 4.383 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005091/0.1598, allocations: 3.871 MB / 482.5 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008404/0.1607, allocations: 0.518 MB / 483.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.1612, allocations: 242.5 kB / 483.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.1612, allocations: 4 kB / 483.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1613, allocations: 42.5 kB / 483.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.825e-06/0.1613, allocations: 0 / 483.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01022/0.1715, allocations: 3.792 MB / 487.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/0.1716, allocations: 111.2 kB / 487.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006961/0.1723, allocations: 0.5183 MB / 487.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.65e-05/0.1724, allocations: 37.7 kB / 487.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.1727, allocations: 407 kB / 488.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.173, allocations: 193.2 kB / 488.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.903e-05/0.173, allocations: 12 kB / 488.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.1733, allocations: 374.7 kB / 488.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.1738, allocations: 281.8 kB / 489 MB, free: 9.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007069/0.1745, allocations: 0.4956 MB / 489.5 MB, free: 8.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.1751, allocations: 368.6 kB / 489.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1751, allocations: 0 / 489.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003137/0.1782, allocations: 1.457 MB / 491.3 MB, free: 7.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.1783, allocations: 11.95 kB / 491.4 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.1783, allocations: 8 kB / 491.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.1797, allocations: 451 kB / 491.8 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.1801, allocations: 115.8 kB / 491.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009901/0.1901, allocations: 8.449 MB / 0.4886 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007167/0.1908, allocations: 35.89 kB / 0.4887 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/0.1909, allocations: 28 kB / 0.4887 GB, free: 13.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005259/0.1914, allocations: 314.5 kB / 0.489 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1915, allocations: 59.34 kB / 0.4891 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002843/0.1944, allocations: 1.307 MB / 0.4903 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.1944, allocations: 8 kB / 0.4903 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.1944, allocations: 7.953 kB / 0.4903 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1944, allocations: 3.984 kB / 0.4903 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004031/0.1985, allocations: 2.245 MB / 0.4925 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.1985, allocations: 4 kB / 0.4925 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.1988, allocations: 63.89 kB / 0.4926 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.2001, allocations: 443.1 kB / 0.493 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.2001, allocations: 12 kB / 0.493 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008777/0.2089, allocations: 8.179 MB / 0.501 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2089, allocations: 0 / 0.501 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2618/0.4707, allocations: 1.841 MB / 0.5028 GB, free: 53.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.4711, allocations: 196.7 kB / 0.503 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.779e-05/0.4712, allocations: 18.77 kB / 0.503 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.4715, allocations: 23.14 kB / 0.5031 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.4718, allocations: 55.03 kB / 0.5031 GB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.4718, allocations: 15.88 kB / 0.5031 GB, free: 53.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005674/0.4724, allocations: 372.3 kB / 0.5035 GB, free: 53.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4724, allocations: 0 / 0.5035 GB, free: 53.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00109/0.4735, allocations: 251.3 kB / 0.5037 GB, free: 53.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002956/0.4738, allocations: 134.9 kB / 0.5038 GB, free: 53.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.4758, allocations: 1.34 MB / 0.5052 GB, free: 53.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4759, allocations: 1.062 kB / 0.5052 GB, free: 53.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.4771, allocations: 0.9676 MB / 0.5061 GB, free: 52.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009027/0.478, allocations: 172.5 kB / 0.5063 GB, free: 52.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.481, allocations: 2.081 MB / 0.5083 GB, free: 51.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.4817, allocations: 1.048 MB / 0.5093 GB, free: 51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.4818, allocations: 51.02 kB / 0.5094 GB, free: 51 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4818, allocations: 0 / 0.5094 GB, free: 51 MB / 382.1 MB Notification: Performance of Templates: time 0.0274/0.5092, allocations: 24.57 MB / 0.5334 GB, free: 36.98 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeedCalcHelperMain.o OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeedCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeedCalcHelperMain.o] Error 1