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.001073/0.001073, allocations: 110.3 kB / 17.16 MB, free: 6.082 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.001044/0.001044, allocations: 198.9 kB / 18.08 MB, free: 5.285 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1663/0.1663, allocations: 38.05 MB / 329.9 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 56.88 kB / 398.7 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1185, allocations: 58.06 MB / 456.8 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009592/0.1281, allocations: 8.114 MB / 464.9 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005778/0.1339, allocations: 3.216 MB / 468.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.135, allocations: 51.69 kB / 468.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.1363, allocations: 334.5 kB / 468.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.1384, allocations: 0.716 MB / 469.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006245/0.1391, allocations: 275.7 kB / 469.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002002/0.1411, allocations: 2.104 MB / 471.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.1424, allocations: 1.142 MB / 472.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007785/0.1432, allocations: 0.5447 MB / 473.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.1441, allocations: 0.7476 MB / 474 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.1443, allocations: 76 kB / 474.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.1454, allocations: 0.6396 MB / 474.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004147/0.1458, allocations: 458.8 kB / 475.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005773/0.1464, allocations: 0.591 MB / 475.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.1478, allocations: 1.688 MB / 477.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1479, allocations: 3.938 kB / 477.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1479, allocations: 0 / 477.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1479, allocations: 0 / 477.5 MB, free: 3.742 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.002854/0.1507, allocations: 1.551 MB / 479 MB, free: 2.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1508, allocations: 8.031 kB / 479 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006151/0.1514, allocations: 171.4 kB / 479.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.1526, allocations: 0.8073 MB / 480 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.1528, allocations: 204.7 kB / 480.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.153, allocations: 100 kB / 480.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.1551, allocations: 1.469 MB / 481.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.1552, allocations: 7.844 kB / 481.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.63e-05/0.1553, allocations: 44 kB / 481.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.1554, allocations: 77.95 kB / 481.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.1573, allocations: 1.257 MB / 483.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006763/0.1641, allocations: 5.231 MB / 488.4 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.1657, allocations: 1.029 MB / 489.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007529/0.1664, allocations: 0.4894 MB / 489.9 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.1665, allocations: 16.61 kB / 489.9 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.1666, allocations: 43.12 kB / 490 MB, free: 6.809 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 3.557e-06/0.1666, allocations: 0 / 490 MB, free: 6.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005829/0.1724, allocations: 3.062 MB / 493 MB, free: 3.672 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.1725, allocations: 111.4 kB / 493.1 MB, free: 3.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.1732, allocations: 0.6914 MB / 493.8 MB, free: 2.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.849e-05/0.1733, allocations: 33.86 kB / 493.9 MB, free: 2.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/0.1736, allocations: 482.7 kB / 494.3 MB, free: 2.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1738, allocations: 268.2 kB / 494.6 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/0.1741, allocations: 190.4 kB / 494.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1742, allocations: 390.7 kB / 495.2 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006577/0.1749, allocations: 445.8 kB / 495.6 MB, free: 1.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008174/0.1757, allocations: 0.7168 MB / 496.3 MB, free: 204 kB / 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.005207/0.1809, allocations: 2.575 MB / 498.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.181, allocations: 7.938 kB / 498.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002072/0.183, allocations: 1.305 MB / 0.4885 GB, free: 12.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.1831, allocations: 8 kB / 0.4885 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.1831, allocations: 15.97 kB / 0.4885 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002473/0.1833, allocations: 93.61 kB / 0.4886 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007782/0.1841, allocations: 223.6 kB / 0.4888 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.1852, allocations: 1.343 MB / 0.4901 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006516/0.1858, allocations: 79.75 kB / 0.4902 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/0.1859, allocations: 43.98 kB / 0.4902 GB, free: 10.22 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 system: 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.0005972/0.1865, allocations: 421.3 kB / 0.4906 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.1867, allocations: 75.06 kB / 0.4907 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.1883, allocations: 0.9784 MB / 0.4917 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.1883, allocations: 20 kB / 0.4917 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1883, allocations: 0 / 0.4917 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.1883, allocations: 8.016 kB / 0.4917 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/0.1918, allocations: 2.285 MB / 0.4939 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1918, allocations: 0 / 0.4939 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006774/0.1925, allocations: 143.8 kB / 0.4941 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-05/0.1926, allocations: 28.83 kB / 0.4941 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.1927, allocations: 19.98 kB / 0.4941 GB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009003/0.1936, allocations: 1.28 MB / 0.4953 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.1936, allocations: 3.938 kB / 0.4954 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.1959, allocations: 1.646 MB / 0.497 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004161/0.1964, allocations: 248.1 kB / 0.4972 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.1965, allocations: 15.94 kB / 0.4972 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/0.197, allocations: 47.94 kB / 0.4973 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.1972, allocations: 52.48 kB / 0.4973 GB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.1973, allocations: 23.98 kB / 0.4973 GB, free: 2.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006613/0.1979, allocations: 483 kB / 0.4978 GB, free: 2.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.198, allocations: 4 kB / 0.4978 GB, free: 2.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001103/0.1991, allocations: 256 kB / 0.498 GB, free: 1.938 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.0004418/0.1995, allocations: 165.9 kB / 0.4982 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.2016, allocations: 1.238 MB / 0.4994 GB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2016, allocations: 0 / 0.4994 GB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008918/0.2025, allocations: 0.6231 MB / 0.5 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.2036, allocations: 206.8 kB / 0.5002 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005186/0.2088, allocations: 3.023 MB / 0.5032 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009692/0.2098, allocations: 1.154 MB / 0.5043 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.2102, allocations: 75.42 kB / 0.5044 GB, free: 11.34 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2102, allocations: 0 / 0.5044 GB, free: 11.34 MB / 398.1 MB Notification: Performance of Templates: time 0.2468/0.457, allocations: 20.81 MB / 0.5247 GB, free: 68.48 MB / 398.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