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.0009669/0.0009668, allocations: 99.67 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 174.4 kB / 16.58 MB, free: 6.422 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.456/1.456, allocations: 223.2 MB / 240.6 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.2233/0.2233, allocations: 2.573 MB / 294.3 MB, free: 4.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 12 kB / 355.8 MB, free: 4.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1323, allocations: 51.02 MB / 406.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003867/0.1363, allocations: 2.539 MB / 409.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.139, allocations: 1.22 MB / 410.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1392, allocations: 8 kB / 410.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.1395, allocations: 71.44 kB / 410.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.1405, allocations: 349.4 kB / 411 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.1408, allocations: 115.9 kB / 411.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.142, allocations: 0.7758 MB / 411.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.1425, allocations: 286.9 kB / 412.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003164/0.1428, allocations: 195.1 kB / 412.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/0.1434, allocations: 294.8 kB / 412.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.508e-05/0.1434, allocations: 20 kB / 412.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.1437, allocations: 95.88 kB / 412.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.1439, allocations: 183.3 kB / 412.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.144, allocations: 133.3 kB / 413 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008725/0.1449, allocations: 0.6161 MB / 413.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1449, allocations: 0 / 413.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1449, allocations: 11.88 kB / 413.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1449, allocations: 0 / 413.7 MB, free: 10.93 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.002867/0.1478, allocations: 1.126 MB / 414.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.1479, allocations: 12.03 kB / 414.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.1481, allocations: 86.95 kB / 414.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.1492, allocations: 0.5982 MB / 415.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.1493, allocations: 37.31 kB / 415.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.395e-05/0.1494, allocations: 55.98 kB / 415.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.1511, allocations: 0.7222 MB / 416.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.1512, allocations: 0 / 416.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.894e-05/0.1512, allocations: 27.95 kB / 416.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.673e-05/0.1513, allocations: 37.28 kB / 416.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.1529, allocations: 0.6218 MB / 417 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004169/0.1571, allocations: 2.269 MB / 419.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.1587, allocations: 0.5572 MB / 419.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000594/0.1593, allocations: 260.7 kB / 420.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001891/0.1595, allocations: 174.2 kB / 420.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.1596, allocations: 38.56 kB / 420.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.805e-06/0.1596, allocations: 0 / 420.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001955/0.1615, allocations: 0.7198 MB / 421 MB, free: 3.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.1616, allocations: 55.41 kB / 421 MB, free: 3.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.1627, allocations: 0.7293 MB / 421.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.1627, allocations: 37.7 kB / 421.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/0.163, allocations: 327.9 kB / 422.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.1632, allocations: 134.1 kB / 422.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.1632, allocations: 4 kB / 422.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.1634, allocations: 382.7 kB / 422.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.164, allocations: 217 kB / 422.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006796/0.1647, allocations: 347.1 kB / 423.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005847/0.1653, allocations: 209.1 kB / 423.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1653, allocations: 4 kB / 423.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001451/0.1667, allocations: 0.6116 MB / 424 MB, free: 232 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1668, allocations: 11.98 kB / 424 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1668, allocations: 4 kB / 424 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.1668, allocations: 8 kB / 424 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.1672, allocations: 83.83 kB / 424.1 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1672, allocations: 8 kB / 424.1 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2584/0.4256, allocations: 120.8 kB / 424.2 MB, free: 47.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.4258, allocations: 25.25 kB / 424.3 MB, free: 47.43 MB / 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 (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],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000572/0.4264, allocations: 269.3 kB / 424.5 MB, free: 47.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/0.4267, allocations: 66.73 kB / 424.6 MB, free: 47.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.4287, allocations: 0.6217 MB / 425.2 MB, free: 47.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.4287, allocations: 7.047 kB / 425.2 MB, free: 47.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.4287, allocations: 0 / 425.2 MB, free: 47.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4287, allocations: 4.125 kB / 425.2 MB, free: 47.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.4311, allocations: 1.351 MB / 426.6 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.4311, allocations: 0 / 426.6 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.4314, allocations: 65.12 kB / 426.6 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.4314, allocations: 5.344 kB / 426.7 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.4314, allocations: 12.78 kB / 426.7 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.4314, allocations: 6.734 kB / 426.7 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4314, allocations: 0 / 426.7 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.4332, allocations: 0.9592 MB / 427.6 MB, free: 46.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.4335, allocations: 208.6 kB / 427.8 MB, free: 46.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.4336, allocations: 6.562 kB / 427.8 MB, free: 46.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.4341, allocations: 112.4 kB / 427.9 MB, free: 46.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.4343, allocations: 120.1 kB / 428.1 MB, free: 46.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.4343, allocations: 18.69 kB / 428.1 MB, free: 46.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006589/0.435, allocations: 0.53 MB / 428.6 MB, free: 46.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.435, allocations: 0 / 428.6 MB, free: 46.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005725/0.4356, allocations: 149.2 kB / 428.8 MB, free: 46.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002365/0.4358, allocations: 152.9 kB / 428.9 MB, free: 46.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.4372, allocations: 0.5247 MB / 429.4 MB, free: 46.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4373, allocations: 0 / 429.4 MB, free: 46.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005767/0.4378, allocations: 293 kB / 429.7 MB, free: 46.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.4385, allocations: 64.2 kB / 429.8 MB, free: 46.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.4416, allocations: 1.484 MB / 431.3 MB, free: 45.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.4421, allocations: 0.944 MB / 432.2 MB, free: 45.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.4423, allocations: 63.12 kB / 432.3 MB, free: 45.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4423, allocations: 0 / 432.3 MB, free: 45.12 MB / 350.1 MB Notification: Performance of Templates: time 0.01194/0.4542, allocations: 9.041 MB / 441.3 MB, free: 44.41 MB / 350.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.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 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