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.001075/0.001075, allocations: 99.11 kB / 16.02 MB, free: 76 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.0021/0.0021, allocations: 182 kB / 16.92 MB, free: 6.918 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.657/1.657, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.202/0.202, allocations: 2.576 MB / 294.6 MB, free: 4.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006266/0.0006268, allocations: 12 kB / 356.4 MB, free: 4.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1303, allocations: 51.02 MB / 407.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003642/0.134, allocations: 2.646 MB / 410.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.1366, allocations: 1.286 MB / 411.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/0.1368, allocations: 11.94 kB / 411.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.1371, allocations: 67.5 kB / 411.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.1382, allocations: 398.4 kB / 411.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1386, allocations: 155.9 kB / 412 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.1396, allocations: 0.8382 MB / 412.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004966/0.1401, allocations: 329.4 kB / 413.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002931/0.1404, allocations: 239 kB / 413.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003355/0.1408, allocations: 290.5 kB / 413.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.1408, allocations: 20 kB / 413.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.1411, allocations: 103.9 kB / 413.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.1413, allocations: 163.4 kB / 413.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.1416, allocations: 303.7 kB / 414.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006107/0.1422, allocations: 0.5927 MB / 414.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1422, allocations: 0 / 414.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1422, allocations: 0 / 414.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.1422, allocations: 3.938 kB / 414.8 MB, free: 10.04 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.002535/0.1448, allocations: 1.048 MB / 415.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1448, allocations: 12.03 kB / 415.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.145, allocations: 91.89 kB / 416 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007509/0.1458, allocations: 0.5404 MB / 416.5 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.1458, allocations: 37.69 kB / 416.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.1459, allocations: 52.31 kB / 416.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.1474, allocations: 0.7339 MB / 417.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.1474, allocations: 0 / 417.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.267e-05/0.1475, allocations: 24 kB / 417.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.549e-05/0.1475, allocations: 37.3 kB / 417.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.1491, allocations: 0.6218 MB / 418 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00385/0.153, allocations: 2.242 MB / 420.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.1547, allocations: 0.5572 MB / 420.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006507/0.1553, allocations: 256.7 kB / 421.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001796/0.1555, allocations: 182.1 kB / 421.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1556, allocations: 42.56 kB / 421.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.304e-06/0.1556, allocations: 0 / 421.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002147/0.1577, allocations: 0.7237 MB / 422 MB, free: 2.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.1578, allocations: 55.41 kB / 422.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000709/0.1585, allocations: 0.6084 MB / 422.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.1586, allocations: 37.7 kB / 422.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.1588, allocations: 323.8 kB / 423 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.1589, allocations: 138.1 kB / 423.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-05/0.159, allocations: 57.69 kB / 423.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1592, allocations: 374.8 kB / 423.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006277/0.1598, allocations: 221 kB / 423.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007274/0.1606, allocations: 339.2 kB / 424.1 MB, free: 396 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2763/0.4369, allocations: 498.4 kB / 424.6 MB, free: 47.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.4369, allocations: 2.812 kB / 424.6 MB, free: 47.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00213/0.4391, allocations: 0.6121 MB / 425.2 MB, free: 47.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.4391, allocations: 8.484 kB / 425.2 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.4391, allocations: 3.406 kB / 425.2 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.438e-05/0.4392, allocations: 6.469 kB / 425.3 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.4396, allocations: 90.33 kB / 425.3 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.4396, allocations: 10.59 kB / 425.3 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.4401, allocations: 87.67 kB / 425.4 MB, free: 47.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.188e-05/0.4402, allocations: 28 kB / 425.5 MB, free: 47.36 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 (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.0003854/0.4406, allocations: 268.1 kB / 425.7 MB, free: 47.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.4407, allocations: 63.55 kB / 425.8 MB, free: 47.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.4423, allocations: 0.6197 MB / 426.4 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.4423, allocations: 3.188 kB / 426.4 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4424, allocations: 0 / 426.4 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4424, allocations: 6.359 kB / 426.4 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.4447, allocations: 1.343 MB / 427.8 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4447, allocations: 1.594 kB / 427.8 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.4449, allocations: 64.5 kB / 427.8 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.445, allocations: 0.8438 kB / 427.8 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.445, allocations: 16.59 kB / 427.8 MB, free: 46.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.445, allocations: 10.53 kB / 427.8 MB, free: 46.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.445, allocations: 0 / 427.8 MB, free: 46.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.4471, allocations: 0.9454 MB / 428.8 MB, free: 46.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.4474, allocations: 196 kB / 429 MB, free: 46.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.686e-05/0.4475, allocations: 8.906 kB / 429 MB, free: 46.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.448, allocations: 76.02 kB / 429.1 MB, free: 46.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/0.4482, allocations: 115 kB / 429.2 MB, free: 46.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.4483, allocations: 22.39 kB / 429.2 MB, free: 46.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005206/0.4488, allocations: 436.5 kB / 429.6 MB, free: 46.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4488, allocations: 0 / 429.6 MB, free: 46.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005526/0.4494, allocations: 150.8 kB / 429.8 MB, free: 46.48 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.0002494/0.4496, allocations: 147.4 kB / 429.9 MB, free: 46.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.4511, allocations: 0.5353 MB / 430.5 MB, free: 46.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4511, allocations: 0 / 430.5 MB, free: 46.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006938/0.4518, allocations: 288.5 kB / 430.7 MB, free: 46.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005893/0.4524, allocations: 66.84 kB / 430.8 MB, free: 46.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.4547, allocations: 1.556 MB / 432.4 MB, free: 45.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.4552, allocations: 0.9379 MB / 433.3 MB, free: 44.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.4554, allocations: 64.89 kB / 433.4 MB, free: 44.88 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4554, allocations: 0 / 433.4 MB, free: 44.88 MB / 350.1 MB Notification: Performance of Templates: time 0.01229/0.4677, allocations: 8.888 MB / 442.2 MB, free: 44.17 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