Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.0009862/0.0009863, allocations: 92.27 kB / 16.96 MB, free: 6.461 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.001061/0.001061, allocations: 178.8 kB / 17.84 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1712/0.1712, allocations: 38.03 MB / 310.3 MB, free: 6.105 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004904, allocations: 15.12 kB / 377.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2498, allocations: 56.33 MB / 433.5 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007073/0.257, allocations: 7.245 MB / 440.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004697/0.2617, allocations: 3.037 MB / 443.8 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.2627, allocations: 43.75 kB / 443.8 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000936/0.2637, allocations: 218.5 kB / 444 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002219/0.2659, allocations: 0.7662 MB / 444.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008094/0.2668, allocations: 267.6 kB / 445 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001537/0.2683, allocations: 1.749 MB / 446.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.2694, allocations: 1.122 MB / 447.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.27, allocations: 0.5058 MB / 448.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006586/0.2707, allocations: 0.6853 MB / 449.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.929e-05/0.2708, allocations: 56 kB / 449.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008167/0.2716, allocations: 0.6084 MB / 449.8 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002771/0.2719, allocations: 426.9 kB / 450.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.2721, allocations: 253.1 kB / 450.4 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.2731, allocations: 1.656 MB / 452.1 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2731, allocations: 4 kB / 452.1 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2731, allocations: 0 / 452.1 MB, free: 128 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.2731, allocations: 0 / 452.1 MB, free: 128 kB / 318.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.002533/0.2757, allocations: 1.348 MB / 453.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2757, allocations: 8.031 kB / 453.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005904/0.2763, allocations: 174.5 kB / 453.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.2775, allocations: 0.7869 MB / 454.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002003/0.2777, allocations: 204.8 kB / 454.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.2779, allocations: 104 kB / 454.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.2801, allocations: 1.469 MB / 456.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.2802, allocations: 3.906 kB / 456.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.2803, allocations: 40 kB / 456.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.2804, allocations: 77.92 kB / 456.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.2823, allocations: 1.269 MB / 457.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006537/0.2889, allocations: 5.239 MB / 462.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.2903, allocations: 1.027 MB / 463.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006846/0.291, allocations: 0.4925 MB / 464.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.889e-05/0.2911, allocations: 16.48 kB / 464.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.2911, allocations: 43.12 kB / 464.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 3.647e-06/0.2911, allocations: 0 / 464.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.005861/0.297, allocations: 3.122 MB / 467.5 MB, free: 192 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.2971, allocations: 111.4 kB / 467.6 MB, free: 56 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000894/0.298, allocations: 0.6915 MB / 468.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.298, allocations: 37.7 kB / 468.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.2984, allocations: 478.7 kB / 468.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.2987, allocations: 264.2 kB / 469.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/0.2987, allocations: 20 kB / 469.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.2989, allocations: 390.8 kB / 469.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007212/0.2997, allocations: 437.8 kB / 469.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009177/0.3006, allocations: 0.7243 MB / 470.6 MB, free: 12.89 MB / 350.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.003791/0.3044, allocations: 1.576 MB / 472.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3044, allocations: 4 kB / 472.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002141/0.3066, allocations: 1.312 MB / 473.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.3066, allocations: 8 kB / 473.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.3066, allocations: 8 kB / 473.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/0.3069, allocations: 90.08 kB / 473.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/0.3077, allocations: 227.6 kB / 473.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.3089, allocations: 1.343 MB / 475.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006871/0.3096, allocations: 95.62 kB / 475.3 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.3097, allocations: 48.06 kB / 475.3 MB, free: 8.02 MB / 350.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.0006909/0.3104, allocations: 417.9 kB / 475.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.3105, allocations: 79.06 kB / 475.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.3123, allocations: 0.9823 MB / 476.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.3123, allocations: 19.89 kB / 476.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3123, allocations: 4 kB / 476.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3123, allocations: 3.984 kB / 476.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.3159, allocations: 2.293 MB / 479.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.3159, allocations: 4 kB / 479.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006438/0.3166, allocations: 147.7 kB / 479.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.361e-05/0.3167, allocations: 20.84 kB / 479.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.3168, allocations: 20 kB / 479.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009299/0.3177, allocations: 1.284 MB / 480.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3177, allocations: 160 / 480.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.32, allocations: 1.657 MB / 482.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.3204, allocations: 244.1 kB / 482.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.3205, allocations: 19.98 kB / 482.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.3209, allocations: 51.94 kB / 482.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.3211, allocations: 68.38 kB / 482.6 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.3212, allocations: 16 kB / 482.6 MB, free: 432 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006272/0.3218, allocations: 483.2 kB / 483.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3218, allocations: 0 / 483.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009913/0.3228, allocations: 255.9 kB / 483.3 MB, free: 15.71 MB / 366.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.0003773/0.3232, allocations: 166.3 kB / 483.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.325, allocations: 1.244 MB / 484.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.325, allocations: 0 / 484.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008187/0.3258, allocations: 0.6089 MB / 485.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3268, allocations: 218.8 kB / 485.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004764/0.3316, allocations: 3.161 MB / 488.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007997/0.3324, allocations: 1.157 MB / 489.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.3327, allocations: 75.42 kB / 490 MB, free: 8.961 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3327, allocations: 0 / 490 MB, free: 8.961 MB / 366.1 MB Notification: Performance of Templates: time 0.02782/0.3605, allocations: 20.71 MB / 0.4987 GB, free: 4.242 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile make -j1 -f PowerSystems_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_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCCalcHelperMain.o] Error 1