Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoEncoder.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.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") translateModel(BLDC.Examples.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=600000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001025, allocations: 105.9 kB / 16.27 MB, free: 6.414 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.0009963/0.0009963, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.256/1.256, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02544/0.02544, allocations: 2.598 MB / 293.6 MB, free: 12.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 95.84 kB / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2068, allocations: 50.03 MB / 404.7 MB, free: 33.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.004222/0.2111, allocations: 4.193 MB / 408.9 MB, free: 29.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.2135, allocations: 1.707 MB / 410.6 MB, free: 27.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000335/0.2138, allocations: 23.88 kB / 410.7 MB, free: 27.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002836/0.2141, allocations: 142.5 kB / 410.8 MB, free: 27.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006505/0.2148, allocations: 270.1 kB / 411.1 MB, free: 27.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.2154, allocations: 487.2 kB / 411.6 MB, free: 26.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009878/0.2164, allocations: 1.325 MB / 412.9 MB, free: 25.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000541/0.217, allocations: 0.5748 MB / 413.5 MB, free: 24.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003713/0.2174, allocations: 0.5139 MB / 414 MB, free: 24.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004334/0.2178, allocations: 0.5795 MB / 414.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.2179, allocations: 112 kB / 414.7 MB, free: 23.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.2182, allocations: 179.9 kB / 414.8 MB, free: 23.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.2184, allocations: 335 kB / 415.2 MB, free: 22.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.2188, allocations: 0.5867 MB / 415.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007954/0.2196, allocations: 1.302 MB / 417 MB, free: 21.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2196, allocations: 0 / 417 MB, free: 21.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2196, allocations: 0 / 417 MB, free: 21.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.2196, allocations: 0 / 417 MB, free: 21.04 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: 238 * Number of variables: 238 Notification: Performance of Generate backend data structure: time 0.002455/0.2221, allocations: 1.665 MB / 418.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.676e-05/0.2221, allocations: 8.031 kB / 418.7 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000763/0.2229, allocations: 195.3 kB / 418.9 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007924/0.2237, allocations: 0.7726 MB / 419.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.2237, allocations: 74.38 kB / 419.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.2239, allocations: 104.4 kB / 419.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.2257, allocations: 1.319 MB / 421.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.2258, allocations: 4 kB / 421.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.482e-05/0.2259, allocations: 59.95 kB / 421.2 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/0.2259, allocations: 45.98 kB / 421.3 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.2278, allocations: 1.042 MB / 422.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.2314, allocations: 3.363 MB / 425.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.2328, allocations: 0.9312 MB / 426.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000931/0.2338, allocations: 0.5845 MB / 427.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.2339, allocations: 178.8 kB / 427.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00139/0.2353, allocations: 1.114 MB / 428.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=108): time 3.156e-06/0.2353, allocations: 4 kB / 428.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=109): time 0.005538/0.2409, allocations: 3.314 MB / 431.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/0.241, allocations: 452.2 kB / 432.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006849/0.2417, allocations: 0.8328 MB / 433.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.328e-05/0.2417, allocations: 73.69 kB / 433.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.242, allocations: 488.4 kB / 433.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.2421, allocations: 308 kB / 433.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.2424, allocations: 259.5 kB / 434.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.662e-05/0.2424, allocations: 301.1 kB / 434.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.2431, allocations: 415.7 kB / 434.9 MB, free: 2.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007595/0.2438, allocations: 0.8193 MB / 435.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.245, allocations: 1.192 MB / 436.9 MB, free: 276 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.245, allocations: 8 kB / 436.9 MB, free: 268 kB / 302.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002096/0.2471, allocations: 1.415 MB / 438.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.409e-05/0.2472, allocations: 101 kB / 438.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.2473, allocations: 8 kB / 438.4 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.2473, allocations: 23.98 kB / 438.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006306/0.2479, allocations: 191.6 kB / 438.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.248, allocations: 27.92 kB / 438.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006922/0.2487, allocations: 127.9 kB / 438.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.319e-05/0.2487, allocations: 56 kB / 438.8 MB, free: 14.27 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 111 (encoderTimeAndCount.t2,$PRE.encoderTimeAndCount.t2,encoderTimeAndCount.t1,$PRE.encoderTimeAndCount.t1,encoderTimeAndCount.firstEdge,$PRE.encoderTimeAndCount.firstEdge,encoderTimeAndCount.count,$PRE.encoderTimeAndCount.count,encoderPulseCount.count,$PRE.encoderPulseCount.count,hallTimeSpan.t0,$PRE.hallTimeSpan.t0,hallTimeSpan.firstEdge,$PRE.hallTimeSpan.firstEdge,encoderPulseCount.firstTrigger,$PRE.encoderPulseCount.firstTrigger,encoderTimeSpan.firstEdge,$PRE.encoderTimeSpan.firstEdge,encoderTimeSpan.t0,$PRE.encoderTimeSpan.t0,encoderTimeAndCount.firstTrigger,$PRE.encoderTimeAndCount.firstTrigger,refFrequency.count,$PRE.refFrequency.count,refFrequency.T_start,$PRE.refFrequency.T_start,$whenCondition1,encoderTimeAndCount.w,$PRE.encoderTimeAndCount.w,encoderTimeSpan.w,$PRE.encoderTimeSpan.w,encoderPulseCount.w,$PRE.encoderPulseCount.w,hallTimeSpan.notC[5],$PRE.hallTimeSpan.notC[5],hallTimeSpan.notC[4],$PRE.hallTimeSpan.notC[4],hallTimeSpan.notC[3],$PRE.hallTimeSpan.notC[3],hallTimeSpan.notC[2],$PRE.hallTimeSpan.notC[2],hallTimeSpan.notC[1],$PRE.hallTimeSpan.notC[1],hallTimeSpan.uC[5],$PRE.hallTimeSpan.uC[5],hallTimeSpan.uC[4],$PRE.hallTimeSpan.uC[4],hallTimeSpan.uC[3],$PRE.hallTimeSpan.uC[3],hallTimeSpan.uC[2],$PRE.hallTimeSpan.uC[2],hallTimeSpan.uC[1],$PRE.hallTimeSpan.uC[1],encoderPulseCount.notB,$PRE.encoderPulseCount.notB,encoderPulseCount.notA,$PRE.encoderPulseCount.notA,encoderPulseCount.B,$PRE.encoderPulseCount.B,encoderPulseCount.A,$PRE.encoderPulseCount.A,encoderPulseCount.sampleTrigger,encoderTimeSpan.notB,$PRE.encoderTimeSpan.notB,encoderTimeSpan.notA,$PRE.encoderTimeSpan.notA,encoderTimeSpan.B,$PRE.encoderTimeSpan.B,encoderTimeSpan.A,$PRE.encoderTimeSpan.A,encoderTimeAndCount.notB,$PRE.encoderTimeAndCount.notB,encoderTimeAndCount.notA,$PRE.encoderTimeAndCount.notA,encoderTimeAndCount.B,$PRE.encoderTimeAndCount.B,encoderTimeAndCount.A,$PRE.encoderTimeAndCount.A,encoderTimeAndCount.sampleTrigger,incrementalEncoder.y[1],$whenCondition27,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition22,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,hallTimeSpan.w,$PRE.hallTimeSpan.w,unwrapAngle.integralController.local_reset,sinCosEvaluation.integralController.local_reset,f2pos.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * 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.0005192/0.2493, allocations: 478.8 kB / 439.3 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.2494, allocations: 114.6 kB / 439.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/0.2523, allocations: 1.523 MB / 440.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.2523, allocations: 12 kB / 441 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2524, allocations: 3.938 kB / 441 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.2524, allocations: 7.984 kB / 441 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004367/0.2567, allocations: 2.704 MB / 443.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2568, allocations: 0 / 443.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/0.2572, allocations: 99.8 kB / 443.8 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.2572, allocations: 4 kB / 443.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.684e-05/0.2573, allocations: 47.94 kB / 443.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.2573, allocations: 4 kB / 443.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2573, allocations: 0 / 443.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004053/0.2614, allocations: 2.259 MB / 446.1 MB, free: 6.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003857/0.2618, allocations: 283.6 kB / 446.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/0.262, allocations: 63.97 kB / 446.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/0.2628, allocations: 115.9 kB / 446.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.2631, allocations: 140.8 kB / 446.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.2633, allocations: 111.8 kB / 446.8 MB, free: 6.156 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006177/0.2639, allocations: 0.5498 MB / 447.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2639, allocations: 0 / 447.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007494/0.2647, allocations: 264 kB / 447.6 MB, free: 5.352 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 7 (speedSensor.flange.phi,sinCosEvaluation.integralController.y,encoderTimeAndCount.phi,encoderTimeSpan.phi,encoderPulseCount.phi,unwrapAngle.integralController.y,hallTimeSpan.phi) * Number of discrete variables: 69 (encoderPulseCount.sampleTrigger,encoderTimeAndCount.sampleTrigger,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition22,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition27,refFrequency.T_start,refFrequency.count,incrementalEncoder.y[1],encoderTimeAndCount.firstTrigger,encoderTimeAndCount.w,encoderTimeAndCount.A,encoderTimeAndCount.B,encoderTimeAndCount.notA,encoderTimeAndCount.notB,encoderTimeAndCount.count,encoderTimeAndCount.firstEdge,encoderTimeAndCount.t1,encoderTimeAndCount.t2,encoderTimeSpan.w,encoderTimeSpan.A,encoderTimeSpan.B,encoderTimeSpan.notA,encoderTimeSpan.notB,encoderTimeSpan.firstEdge,encoderTimeSpan.t0,encoderPulseCount.firstTrigger,encoderPulseCount.w,encoderPulseCount.A,encoderPulseCount.B,encoderPulseCount.notA,encoderPulseCount.notB,encoderPulseCount.count,hallTimeSpan.uC[1],hallTimeSpan.uC[2],hallTimeSpan.uC[3],hallTimeSpan.uC[4],hallTimeSpan.uC[5],hallTimeSpan.w,hallTimeSpan.notC[1],hallTimeSpan.notC[2],hallTimeSpan.notC[3],hallTimeSpan.notC[4],hallTimeSpan.notC[5],hallTimeSpan.firstEdge,hallTimeSpan.t0) * Number of discrete states: 44 (refFrequency.count,encoderTimeSpan.A,encoderTimeSpan.notA,encoderTimeSpan.B,encoderTimeSpan.notB,encoderTimeAndCount.w,$whenCondition27,encoderTimeAndCount.t2,encoderTimeAndCount.t1,encoderTimeAndCount.firstEdge,encoderTimeAndCount.count,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,encoderTimeAndCount.A,encoderTimeAndCount.notA,encoderTimeAndCount.B,encoderTimeAndCount.notB,encoderPulseCount.w,$whenCondition22,encoderPulseCount.count,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,encoderPulseCount.A,encoderPulseCount.notA,encoderPulseCount.B,encoderPulseCount.notB,hallTimeSpan.uC[1],hallTimeSpan.notC[1],hallTimeSpan.uC[2],hallTimeSpan.notC[2],hallTimeSpan.uC[3],hallTimeSpan.notC[3],hallTimeSpan.uC[4],hallTimeSpan.notC[4],hallTimeSpan.uC[5],hallTimeSpan.notC[5],hallTimeSpan.t0,hallTimeSpan.firstEdge,encoderTimeSpan.t0,encoderTimeSpan.firstEdge) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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.0002761/0.265, allocations: 215.5 kB / 447.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.268, allocations: 1.637 MB / 449.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.268, allocations: 0.5625 kB / 449.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001473/0.2695, allocations: 1.04 MB / 450.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.2702, allocations: 149.2 kB / 450.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.2739, allocations: 2.346 MB / 453 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006153/0.2745, allocations: 1.104 MB / 454.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002364/0.2747, allocations: 99.42 kB / 454.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2747, allocations: 3.938 kB / 454.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Templates: time 0.01794/0.2927, allocations: 14.45 MB / 468.6 MB, free: 204 kB / 334.1 MB make -j1 -f BLDC_BLDC.Examples.DemoEncoder.makefile make -j1 -f BLDC_BLDC.Examples.DemoEncoder.makefile clang++ -std=c++17 -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.DemoEncoderCalcHelperMain.o OMCppBLDC_BLDC.Examples.DemoEncoderCalcHelperMain.cpp In file included from OMCppBLDC_BLDC.Examples.DemoEncoderCalcHelperMain.cpp:33: ./OMCppBLDC_BLDC.Examples.DemoEncoder.cpp:450:86: error: invalid argument type 'WrapArray' to unary expression _functions->Modelica_Math_BooleanVectors_firstTrueIndex((_hallTimeSpan_P_uC_ && (!_discrete_events->pre(_hallTimeSpan_P_uC_))), tmp33); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./OMCppBLDC_BLDC.Examples.DemoEncoder.cpp:465:88: error: invalid argument type 'WrapArray' to unary expression _functions->Modelica_Math_BooleanVectors_firstTrueIndex((_hallTimeSpan_P_notC_ && (!_discrete_events->pre(_hallTimeSpan_P_notC_))), tmp36); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make: *** [: OMCppBLDC_BLDC.Examples.DemoEncoderCalcHelperMain.o] Error 1