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.004932/0.004932, allocations: 100.9 kB / 15.87 MB, free: 5.867 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.001054/0.001054, allocations: 189.5 kB / 16.79 MB, free: 5.809 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.27/1.27, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1194/0.1194, allocations: 2.585 MB / 293.2 MB, free: 3.504 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 83.86 kB / 354 MB, free: 5.348 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 50.04 MB / 404 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004094/0.1088, allocations: 3.038 MB / 407.1 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00223/0.111, allocations: 1.305 MB / 408.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002575/0.1113, allocations: 15.94 kB / 408.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.1117, allocations: 67.44 kB / 408.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.1128, allocations: 398.5 kB / 408.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.1131, allocations: 159.8 kB / 409 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1142, allocations: 0.8343 MB / 409.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004491/0.1146, allocations: 337.4 kB / 410.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003176/0.115, allocations: 282.9 kB / 410.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.1153, allocations: 338.6 kB / 410.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.869e-05/0.1154, allocations: 32 kB / 410.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.1157, allocations: 115.9 kB / 410.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.1158, allocations: 195.4 kB / 411.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002535/0.1161, allocations: 310 kB / 411.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006718/0.1168, allocations: 0.6046 MB / 412 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1168, allocations: 0 / 412 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1168, allocations: 4 kB / 412 MB, free: 11.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1168, allocations: 4 kB / 412 MB, free: 11.23 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002696/0.1195, allocations: 1.169 MB / 413.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1196, allocations: 19.95 kB / 413.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.1198, allocations: 80 kB / 413.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007065/0.1205, allocations: 0.5443 MB / 413.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.1205, allocations: 37.69 kB / 413.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.61e-05/0.1206, allocations: 52.38 kB / 413.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.122, allocations: 0.73 MB / 414.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.122, allocations: 0 / 414.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.561e-05/0.1221, allocations: 24 kB / 414.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.972e-05/0.1222, allocations: 37.3 kB / 414.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.1237, allocations: 0.6218 MB / 415.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003494/0.1272, allocations: 2.211 MB / 417.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.1288, allocations: 0.5533 MB / 418.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/0.1294, allocations: 256.7 kB / 418.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.1295, allocations: 186.1 kB / 418.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.1296, allocations: 38.56 kB / 418.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.704e-06/0.1296, allocations: 3.938 kB / 418.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001976/0.1316, allocations: 0.7237 MB / 419.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.1316, allocations: 55.41 kB / 419.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006685/0.1323, allocations: 0.6162 MB / 420 MB, free: 3.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1323, allocations: 33.7 kB / 420 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.1326, allocations: 327.8 kB / 420.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.1327, allocations: 138.1 kB / 420.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.1328, allocations: 106.2 kB / 420.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.133, allocations: 370.8 kB / 420.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.1336, allocations: 225 kB / 421.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.1343, allocations: 343.1 kB / 421.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.1355, allocations: 0.4906 MB / 422 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1355, allocations: 4 kB / 422 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001478/0.137, allocations: 0.6113 MB / 422.6 MB, free: 280 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.137, allocations: 8 kB / 422.6 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.137, allocations: 8.406 kB / 422.6 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.137, allocations: 12.11 kB / 422.6 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.1374, allocations: 87.83 kB / 422.7 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.1374, allocations: 11.94 kB / 422.7 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.1378, allocations: 79.31 kB / 422.8 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.1379, allocations: 24 kB / 422.8 MB, free: 48 kB / 350.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.2067/0.3445, allocations: 257 kB / 423.1 MB, free: 50.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.3448, allocations: 68.56 kB / 423.1 MB, free: 50.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.3466, allocations: 0.621 MB / 423.7 MB, free: 50.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.3466, allocations: 11.22 kB / 423.8 MB, free: 50.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3466, allocations: 0.9688 kB / 423.8 MB, free: 50.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3466, allocations: 0 / 423.8 MB, free: 50.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.349, allocations: 1.331 MB / 425.1 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.349, allocations: 3.344 kB / 425.1 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.3492, allocations: 55.17 kB / 425.1 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.3492, allocations: 3.422 kB / 425.1 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.3493, allocations: 20.56 kB / 425.2 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3493, allocations: 3.844 kB / 425.2 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3493, allocations: 5.969 kB / 425.2 MB, free: 50.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.3513, allocations: 0.9514 MB / 426.1 MB, free: 49.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002236/0.3515, allocations: 203.7 kB / 426.3 MB, free: 49.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.645e-05/0.3516, allocations: 7 kB / 426.3 MB, free: 49.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004119/0.352, allocations: 62.77 kB / 426.4 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.3523, allocations: 118.5 kB / 426.5 MB, free: 49.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.3523, allocations: 16.98 kB / 426.5 MB, free: 49.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004198/0.3527, allocations: 430.9 kB / 426.9 MB, free: 49.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3527, allocations: 3.25 kB / 427 MB, free: 49.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005431/0.3533, allocations: 143 kB / 427.1 MB, free: 49.37 MB / 350.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.0002383/0.3535, allocations: 147.5 kB / 427.2 MB, free: 49.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.3548, allocations: 0.5263 MB / 427.8 MB, free: 49.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3548, allocations: 0 / 427.8 MB, free: 49.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000627/0.3554, allocations: 300.6 kB / 428.1 MB, free: 49.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.356, allocations: 64.95 kB / 428.1 MB, free: 49.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.358, allocations: 1.528 MB / 429.6 MB, free: 48.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.3584, allocations: 0.9454 MB / 430.6 MB, free: 47.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.3586, allocations: 69.28 kB / 430.7 MB, free: 47.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3586, allocations: 0 / 430.7 MB, free: 47.42 MB / 350.1 MB Notification: Performance of Templates: time 0.009943/0.3686, allocations: 8.951 MB / 439.6 MB, free: 46.57 MB / 350.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.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 OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.o OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBLDC_BLDC.Examples.DemoElectronicCommutatorCalcHelperMain.o] Error 1