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.0007917/0.0007917, allocations: 91.17 kB / 17.31 MB, free: 6.535 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.00109/0.00109, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.479/1.479, allocations: 223.3 MB / 242.2 MB, free: 14.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1722/0.1722, allocations: 38.08 MB / 331.4 MB, free: 8.539 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003277, allocations: 8 kB / 401.4 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1285, allocations: 59.16 MB / 460.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008552/0.1371, allocations: 7.662 MB / 468.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005485/0.1426, allocations: 3.171 MB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009993/0.1437, allocations: 47.69 kB / 471.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008036/0.1445, allocations: 198.8 kB / 471.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.1465, allocations: 0.7121 MB / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007265/0.1473, allocations: 275.7 kB / 472.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002329/0.1496, allocations: 2.104 MB / 474.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.1513, allocations: 1.262 MB / 476 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008347/0.1522, allocations: 497.9 kB / 476.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.1533, allocations: 0.7007 MB / 477.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.1534, allocations: 56 kB / 477.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.1548, allocations: 0.6162 MB / 477.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005083/0.1553, allocations: 418.8 kB / 478.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007133/0.156, allocations: 0.581 MB / 478.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1576, allocations: 1.648 MB / 480.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1576, allocations: 7.938 kB / 480.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1576, allocations: 0 / 480.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.1577, allocations: 0 / 480.5 MB, free: 3.004 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.003042/0.1607, allocations: 1.337 MB / 481.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1608, allocations: 8.031 kB / 481.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006796/0.1615, allocations: 167.5 kB / 482 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.1627, allocations: 0.815 MB / 482.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.163, allocations: 204.7 kB / 483 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.1631, allocations: 99.98 kB / 483.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.1655, allocations: 1.477 MB / 484.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/0.1655, allocations: 0 / 484.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1657, allocations: 40 kB / 484.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.1658, allocations: 73.97 kB / 484.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.1679, allocations: 1.276 MB / 485.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0069/0.1748, allocations: 5.239 MB / 491.2 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.1763, allocations: 1.045 MB / 492.2 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007694/0.1771, allocations: 0.4972 MB / 492.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.671e-05/0.1772, allocations: 12.5 kB / 492.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.1772, allocations: 47.12 kB / 492.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.955e-06/0.1772, allocations: 0 / 492.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006044/0.1833, allocations: 3.129 MB / 495.9 MB, free: 3.027 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.1834, allocations: 111.4 kB / 496 MB, free: 2.895 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008629/0.1843, allocations: 0.6836 MB / 496.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1843, allocations: 37.7 kB / 496.7 MB, free: 2.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/0.1847, allocations: 486.8 kB / 497.2 MB, free: 1.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.1849, allocations: 264.2 kB / 497.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.1851, allocations: 97.66 kB / 497.6 MB, free: 1.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.1853, allocations: 390.7 kB / 498 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007101/0.186, allocations: 445.8 kB / 498.4 MB, free: 500 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008678/0.1869, allocations: 0.7168 MB / 499.1 MB, free: 15.65 MB / 382.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.005626/0.1925, allocations: 2.606 MB / 0.49 GB, free: 12.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.1925, allocations: 4 kB / 0.49 GB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002401/0.1949, allocations: 1.324 MB / 0.4912 GB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.195, allocations: 8 kB / 0.4913 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.195, allocations: 11.94 kB / 0.4913 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.1953, allocations: 77.67 kB / 0.4913 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008243/0.1961, allocations: 227.6 kB / 0.4916 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.1972, allocations: 1.347 MB / 0.4929 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007483/0.198, allocations: 87.89 kB / 0.493 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.519e-05/0.1981, allocations: 40 kB / 0.493 GB, free: 9.633 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[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006572/0.1987, allocations: 419.3 kB / 0.4934 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.1989, allocations: 87.11 kB / 0.4935 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.2007, allocations: 0.9901 MB / 0.4944 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.2008, allocations: 16 kB / 0.4945 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2008, allocations: 0 / 0.4945 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.2008, allocations: 3.984 kB / 0.4945 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.2045, allocations: 2.297 MB / 0.4967 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.2045, allocations: 0 / 0.4967 GB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/0.2052, allocations: 139.8 kB / 0.4968 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.2053, allocations: 32.81 kB / 0.4969 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/0.2054, allocations: 12 kB / 0.4969 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009332/0.2063, allocations: 1.299 MB / 0.4982 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2063, allocations: 7.875 kB / 0.4982 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.2086, allocations: 1.646 MB / 0.4998 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.209, allocations: 252 kB / 0.5 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-05/0.2091, allocations: 19.94 kB / 0.5 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.2096, allocations: 59.94 kB / 0.5001 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.2098, allocations: 60.42 kB / 0.5001 GB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.548e-05/0.2099, allocations: 19.98 kB / 0.5002 GB, free: 2.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007091/0.2106, allocations: 479 kB / 0.5006 GB, free: 1.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2106, allocations: 0 / 0.5006 GB, free: 1.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001155/0.2118, allocations: 268 kB / 0.5009 GB, free: 1.281 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003854/0.2122, allocations: 151.2 kB / 0.501 GB, free: 1.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2564/0.4686, allocations: 1.241 MB / 0.5022 GB, free: 55.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.4687, allocations: 0.5 kB / 0.5022 GB, free: 55.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.4701, allocations: 0.6149 MB / 0.5028 GB, free: 55.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.4716, allocations: 210.1 kB / 0.503 GB, free: 55.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005815/0.4774, allocations: 3.208 MB / 0.5062 GB, free: 54.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.4785, allocations: 1.159 MB / 0.5073 GB, free: 53.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.4789, allocations: 76.42 kB / 0.5074 GB, free: 53.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4789, allocations: 0 / 0.5074 GB, free: 53.39 MB / 382.1 MB Notification: Performance of Templates: time 0.03307/0.512, allocations: 20.69 MB / 0.5276 GB, free: 44.45 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++ -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 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