Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001563, allocations: 185.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 86.89 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2595/0.2595, allocations: 38.04 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004508/0.000451, allocations: 8 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01181/0.1212, allocations: 6.923 MB / 486 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00725/0.1285, allocations: 3.029 MB / 489 MB, free: 8.039 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009226/0.1295, allocations: 43.69 kB / 489 MB, free: 7.996 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009255/0.1304, allocations: 214.8 kB / 489.2 MB, free: 7.785 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002773/0.1332, allocations: 0.6504 MB / 489.9 MB, free: 7.133 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1345, allocations: 267.5 kB / 490.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002052/0.1366, allocations: 0.8581 MB / 491 MB, free: 6.012 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002218/0.1388, allocations: 1.134 MB / 492.1 MB, free: 4.832 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.1399, allocations: 454.5 kB / 492.6 MB, free: 4.387 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1409, allocations: 0.5023 MB / 493.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.1411, allocations: 56 kB / 493.1 MB, free: 3.828 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.1426, allocations: 0.5811 MB / 493.7 MB, free: 3.246 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006213/0.1433, allocations: 391 kB / 494.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004074/0.1437, allocations: 249.1 kB / 494.3 MB, free: 2.613 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002884/0.1466, allocations: 1.652 MB / 496 MB, free: 0.957 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1466, allocations: 0 / 496 MB, free: 0.957 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1467, allocations: 0 / 496 MB, free: 0.957 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.651e-05/0.1467, allocations: 0 / 496 MB, free: 0.957 MB / 330.7 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.004483/0.1512, allocations: 1.352 MB / 497.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.1513, allocations: 12.03 kB / 497.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.1524, allocations: 170.5 kB / 497.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002274/0.1547, allocations: 0.7908 MB / 498.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003145/0.155, allocations: 200.8 kB / 498.5 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/0.1554, allocations: 107.8 kB / 498.6 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/0.1592, allocations: 1.461 MB / 0.4884 GB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.759e-05/0.1593, allocations: 3.984 kB / 0.4884 GB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/0.1595, allocations: 40 kB / 0.4884 GB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.1597, allocations: 81.92 kB / 0.4885 GB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003749/0.1635, allocations: 1.265 MB / 0.4897 GB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/0.1755, allocations: 5.231 MB / 0.4948 GB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002687/0.1783, allocations: 1.032 MB / 0.4958 GB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.833e-05/0.1784, allocations: 12.62 kB / 0.4958 GB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.1784, allocations: 47.06 kB / 0.4959 GB, free: 4.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 3.817e-06/0.1784, allocations: 0 / 0.4959 GB, free: 4.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=78): time 0.01107/0.1895, allocations: 3.409 MB / 0.4992 GB, free: 1.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/0.1896, allocations: 111.4 kB / 0.4993 GB, free: 1.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.191, allocations: 0.6758 MB / 0.5 GB, free: 372 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.1911, allocations: 45.77 kB / 0.5 GB, free: 320 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004663/0.1916, allocations: 0.5013 MB / 0.5005 GB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/0.192, allocations: 264.1 kB / 0.5008 GB, free: 15.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.1921, allocations: 20 kB / 0.5008 GB, free: 15.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.1923, allocations: 354.8 kB / 0.5011 GB, free: 15.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.1936, allocations: 437.8 kB / 0.5015 GB, free: 14.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.1951, allocations: 0.7165 MB / 0.5022 GB, free: 13.89 MB / 362.7 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.007768/0.2029, allocations: 1.58 MB / 0.5038 GB, free: 12.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/0.2029, allocations: 7.781 kB / 0.5038 GB, free: 12.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003781/0.2067, allocations: 1.366 MB / 0.5051 GB, free: 10.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.2068, allocations: 11.94 kB / 0.5051 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/0.2068, allocations: 8 kB / 0.5052 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.2073, allocations: 110.8 kB / 0.5053 GB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.2089, allocations: 223.7 kB / 0.5055 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002871/0.2118, allocations: 2.744 MB / 0.5081 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.2132, allocations: 79.84 kB / 0.5082 GB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.2133, allocations: 48.17 kB / 0.5083 GB, free: 7.406 MB / 362.7 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 (114): * Single equations (assignments): 110 * 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: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009322/0.2143, allocations: 417.6 kB / 0.5087 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.2145, allocations: 83 kB / 0.5087 GB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003021/0.2176, allocations: 1.09 MB / 0.5098 GB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-05/0.2176, allocations: 16 kB / 0.5098 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.2177, allocations: 0 / 0.5098 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.2177, allocations: 7.938 kB / 0.5098 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006308/0.224, allocations: 2.384 MB / 0.5122 GB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.2241, allocations: 7.984 kB / 0.5122 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.2254, allocations: 131.8 kB / 0.5123 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.2256, allocations: 49.67 kB / 0.5123 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.15e-05/0.2258, allocations: 23.98 kB / 0.5124 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/0.2284, allocations: 2.673 MB / 0.515 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2284, allocations: 0 / 0.515 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3055/0.5339, allocations: 1.777 MB / 0.5167 GB, free: 50.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006193/0.5346, allocations: 248.5 kB / 0.517 GB, free: 50.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/0.5348, allocations: 17.33 kB / 0.517 GB, free: 50.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009153/0.5357, allocations: 54.52 kB / 0.517 GB, free: 50.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.536, allocations: 65.81 kB / 0.5171 GB, free: 50.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.845e-05/0.5361, allocations: 18.7 kB / 0.5171 GB, free: 50.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009019/0.537, allocations: 481.2 kB / 0.5176 GB, free: 50.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.537, allocations: 5.328 kB / 0.5176 GB, free: 50.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001672/0.5387, allocations: 258.4 kB / 0.5178 GB, free: 50.66 MB / 362.7 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 (69): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004851/0.5392, allocations: 156.4 kB / 0.518 GB, free: 50.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003272/0.5425, allocations: 1.356 MB / 0.5193 GB, free: 49.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5426, allocations: 0.9688 kB / 0.5193 GB, free: 49.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.5445, allocations: 0.7363 MB / 0.52 GB, free: 49.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.5462, allocations: 206.4 kB / 0.5202 GB, free: 49.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007703/0.5539, allocations: 3.164 MB / 0.5233 GB, free: 47.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.5552, allocations: 1.177 MB / 0.5244 GB, free: 47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005871/0.5558, allocations: 70.69 kB / 0.5245 GB, free: 46.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5558, allocations: 0 / 0.5245 GB, free: 46.99 MB / 362.7 MB Notification: Performance of Templates: time 0.04679/0.6026, allocations: 24.02 MB / 0.548 GB, free: 30.79 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile b'clang++ -fopenmp=libomp -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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.cpp:28:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCFunctions.cpp:200:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCFunctions.cpp:259:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n2 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o] Error 1\n'