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.001255/0.001255, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.001213/0.001213, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.555/1.555, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01957/0.01957, allocations: 2.594 MB / 293.8 MB, free: 12.15 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 88.23 kB / 406 MB, free: 29.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1244, allocations: 50.04 MB / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.007729/0.1322, allocations: 4.21 MB / 460.2 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.1377, allocations: 1.703 MB / 461.9 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1393, allocations: 23.88 kB / 462 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009252/0.1403, allocations: 142.5 kB / 462.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.1423, allocations: 274.2 kB / 462.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.144, allocations: 483.2 kB / 462.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002931/0.147, allocations: 1.333 MB / 464.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.1481, allocations: 0.5748 MB / 464.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.1494, allocations: 0.5255 MB / 465.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009531/0.1503, allocations: 0.564 MB / 465.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002735/0.1506, allocations: 112 kB / 466 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000497/0.1511, allocations: 183.9 kB / 466.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004366/0.1516, allocations: 354.8 kB / 466.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007676/0.1524, allocations: 0.5829 MB / 467.1 MB, free: 332 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002225/0.1546, allocations: 1.347 MB / 468.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.1546, allocations: 4 kB / 468.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.1547, allocations: 0 / 468.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.1547, allocations: 0 / 468.4 MB, free: 14.97 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: 238 * Number of variables: 238 Notification: Performance of Generate backend data structure: time 0.003913/0.1586, allocations: 1.657 MB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.1587, allocations: 15.89 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.1596, allocations: 191.2 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.161, allocations: 0.7999 MB / 471.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.313e-05/0.161, allocations: 82.36 kB / 471.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.1612, allocations: 108.3 kB / 471.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002471/0.1637, allocations: 1.304 MB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.1638, allocations: 7.984 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.1639, allocations: 55.95 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.467e-05/0.164, allocations: 49.98 kB / 472.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.1663, allocations: 1.034 MB / 473.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004925/0.1712, allocations: 3.343 MB / 477.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.1731, allocations: 0.9393 MB / 478 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.1741, allocations: 0.5767 MB / 478.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002257/0.1744, allocations: 178.9 kB / 478.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001832/0.1762, allocations: 1.125 MB / 479.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.765e-06/0.1762, allocations: 4 kB / 479.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=109): time 0.007008/0.1833, allocations: 3.318 MB / 483.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002515/0.1836, allocations: 448.2 kB / 483.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.1846, allocations: 0.8251 MB / 484.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.1847, allocations: 77.69 kB / 484.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004092/0.1852, allocations: 492.2 kB / 485 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.1854, allocations: 304 kB / 485.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000336/0.1858, allocations: 255.5 kB / 485.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1859, allocations: 309.1 kB / 485.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/0.1866, allocations: 403.8 kB / 486.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.1877, allocations: 0.8193 MB / 487.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.1894, allocations: 1.204 MB / 488.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.1894, allocations: 7.984 kB / 488.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002334/0.1917, allocations: 1.403 MB / 489.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.937e-05/0.1918, allocations: 109 kB / 489.8 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.1918, allocations: 8.188 kB / 489.8 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.224e-05/0.1919, allocations: 20 kB / 489.8 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/0.1926, allocations: 191.6 kB / 490 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-05/0.1926, allocations: 24.42 kB / 490 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007781/0.1934, allocations: 131.8 kB / 490.2 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.86e-05/0.1935, allocations: 60 kB / 490.2 MB, free: 8.188 MB / 366.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.0007095/0.1942, allocations: 479.2 kB / 490.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.1944, allocations: 118.7 kB / 490.8 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.1974, allocations: 1.519 MB / 492.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.1974, allocations: 8 kB / 492.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.1974, allocations: 7.938 kB / 492.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.1974, allocations: 3.984 kB / 492.3 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.2021, allocations: 2.693 MB / 495 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.2021, allocations: 7.984 kB / 495 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.2026, allocations: 103.8 kB / 495.1 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.2026, allocations: 4 kB / 495.1 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.865e-05/0.2027, allocations: 47.97 kB / 495.2 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.2027, allocations: 4 kB / 495.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2027, allocations: 0 / 495.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004223/0.207, allocations: 2.257 MB / 497.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005449/0.2075, allocations: 283.6 kB / 497.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.2077, allocations: 63.97 kB / 497.8 MB, free: 448 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/0.2085, allocations: 115.9 kB / 497.9 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.2088, allocations: 144.8 kB / 498 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/0.209, allocations: 115.4 kB / 498.2 MB, free: 76 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007071/0.2097, allocations: 0.5459 MB / 498.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2097, allocations: 0 / 498.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.2106, allocations: 264 kB / 499 MB, free: 15.27 MB / 382.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.0003315/0.211, allocations: 215.5 kB / 499.2 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.2135, allocations: 1.41 MB / 0.4889 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.2135, allocations: 0.5625 kB / 0.4889 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.215, allocations: 1.031 MB / 0.4899 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008745/0.2159, allocations: 156 kB / 0.49 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.22, allocations: 2.33 MB / 0.4923 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007127/0.2207, allocations: 1.104 MB / 0.4934 GB, free: 8.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.2211, allocations: 95.42 kB / 0.4935 GB, free: 8.82 MB / 382.1 MB Notification: Performance of SimCode: time 2.494e-06/0.2211, allocations: 3.938 kB / 0.4935 GB, free: 8.816 MB / 382.1 MB Notification: Performance of Templates: time 0.2681/0.4892, allocations: 14.76 MB / 0.5079 GB, free: 49.91 MB / 382.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