Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 102.6 kB / 15.98 MB, free: 6.344 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.001414/0.001414, allocations: 199.5 kB / 16.91 MB, free: 6.184 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.667/1.667, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01167/0.01167, allocations: 2.586 MB / 293.3 MB, free: 12.45 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 83.86 kB / 354.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2747, allocations: 50.04 MB / 404.2 MB, free: 33.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003852/0.2787, allocations: 3.028 MB / 407.2 MB, free: 30.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.2807, allocations: 1.286 MB / 408.5 MB, free: 29.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.281, allocations: 11.94 kB / 408.5 MB, free: 29.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003663/0.2813, allocations: 79.48 kB / 408.6 MB, free: 29.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.2824, allocations: 398.5 kB / 409 MB, free: 28.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.2827, allocations: 151.9 kB / 409.2 MB, free: 28.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008239/0.2835, allocations: 0.7798 MB / 409.9 MB, free: 27.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.2839, allocations: 353.4 kB / 410.3 MB, free: 27.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.2842, allocations: 330.9 kB / 410.6 MB, free: 27.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002915/0.2845, allocations: 358.5 kB / 411 MB, free: 26.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.608e-05/0.2846, allocations: 63.94 kB / 411 MB, free: 26.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.2848, allocations: 147.9 kB / 411.2 MB, free: 26.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.285, allocations: 223.4 kB / 411.4 MB, free: 26.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002257/0.2852, allocations: 334 kB / 411.7 MB, free: 26.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.2858, allocations: 0.6219 MB / 412.3 MB, free: 25.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2858, allocations: 4 kB / 412.3 MB, free: 25.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2858, allocations: 3.938 kB / 412.3 MB, free: 25.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2858, allocations: 0 / 412.3 MB, free: 25.46 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002409/0.2882, allocations: 1.174 MB / 413.5 MB, free: 24.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2883, allocations: 8.031 kB / 413.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/0.2885, allocations: 83.98 kB / 413.6 MB, free: 24.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005785/0.2891, allocations: 0.548 MB / 414.2 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.2891, allocations: 45.67 kB / 414.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.413e-05/0.2892, allocations: 48.38 kB / 414.2 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.2904, allocations: 0.73 MB / 415 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.2904, allocations: 0 / 415 MB, free: 22.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/0.2905, allocations: 23.98 kB / 415 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.923e-05/0.2905, allocations: 41.3 kB / 415 MB, free: 22.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.2918, allocations: 0.6218 MB / 415.7 MB, free: 22.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.2949, allocations: 2.207 MB / 417.9 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.2963, allocations: 0.5609 MB / 418.4 MB, free: 19.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005312/0.2969, allocations: 260.6 kB / 418.7 MB, free: 18.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000146/0.297, allocations: 182.1 kB / 418.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.297, allocations: 42.56 kB / 418.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.705e-06/0.2971, allocations: 0 / 418.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001858/0.2989, allocations: 0.7275 MB / 419.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.299, allocations: 55.41 kB / 419.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005496/0.2995, allocations: 0.6046 MB / 420.3 MB, free: 17.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.2996, allocations: 37.7 kB / 420.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.2997, allocations: 327.8 kB / 420.6 MB, free: 16.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.59e-05/0.2998, allocations: 134 kB / 420.8 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.3, allocations: 114.2 kB / 420.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.3001, allocations: 378.8 kB / 421.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005333/0.3006, allocations: 221 kB / 421.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005848/0.3012, allocations: 339.2 kB / 421.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.3022, allocations: 0.4946 MB / 422.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3022, allocations: 0 / 422.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001303/0.3036, allocations: 0.6118 MB / 422.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3036, allocations: 12.02 kB / 422.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3036, allocations: 7.984 kB / 422.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.3036, allocations: 8 kB / 422.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.3039, allocations: 83.83 kB / 423 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.304, allocations: 11.94 kB / 423 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004202/0.3044, allocations: 79.3 kB / 423.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.765e-05/0.3044, allocations: 27.98 kB / 423.1 MB, free: 14.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002927/0.3047, allocations: 268 kB / 423.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/0.3049, allocations: 71.12 kB / 423.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.3063, allocations: 0.6166 MB / 424.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3063, allocations: 7.984 kB / 424.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3063, allocations: 0 / 424.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3063, allocations: 0 / 424.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.3084, allocations: 1.341 MB / 425.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3084, allocations: 0 / 425.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.3086, allocations: 63.89 kB / 425.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3086, allocations: 0 / 425.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.3087, allocations: 23.98 kB / 425.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3087, allocations: 0 / 425.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3087, allocations: 4 kB / 425.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.3105, allocations: 0.9486 MB / 426.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001905/0.3107, allocations: 204.1 kB / 426.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.3108, allocations: 8 kB / 426.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004085/0.3112, allocations: 59.98 kB / 426.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.3115, allocations: 115.8 kB / 426.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.3115, allocations: 19.98 kB / 426.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003865/0.3119, allocations: 434.8 kB / 427.3 MB, free: 10 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3119, allocations: 0 / 427.3 MB, free: 10 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.3124, allocations: 147.7 kB / 427.4 MB, free: 9.855 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002177/0.3126, allocations: 148.8 kB / 427.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.3141, allocations: 0.6478 MB / 428.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3141, allocations: 4 kB / 428.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005788/0.3147, allocations: 279.7 kB / 428.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.3152, allocations: 65.86 kB / 428.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.3172, allocations: 1.524 MB / 430.1 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.3175, allocations: 0.9498 MB / 431 MB, free: 6.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3177, allocations: 71.41 kB / 431.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3177, allocations: 3.938 kB / 431.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of Templates: time 0.01121/0.3289, allocations: 8.957 MB / 440.1 MB, free: 13.16 MB / 318.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile clang++ -std=c++14 -fopenmp=libomp -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 OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.o OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.cpp In file included from OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.cpp:28: ./OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorFunctions.cpp:59:66: error: use of undeclared identifier 'WHOLEDIM' Complex__omcQ_27constructor_27_fromReal(sum_array(v_(WHOLEDIM).re_), sum_array(v_(WHOLEDIM).im_),tmp58); ^ ./OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorFunctions.cpp:59:103: error: use of undeclared identifier 'WHOLEDIM' Complex__omcQ_27constructor_27_fromReal(sum_array(v_(WHOLEDIM).re_), sum_array(v_(WHOLEDIM).im_),tmp58); ^ 2 errors generated. make: *** [: OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.o] Error 1