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.001126/0.001126, allocations: 105.8 kB / 16.41 MB, free: 6.41 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.001077/0.001077, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01909/0.01909, allocations: 2.602 MB / 293.8 MB, free: 12.15 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 91.86 kB / 406 MB, free: 29.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07776/0.07949, allocations: 50.03 MB / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.005518/0.08505, allocations: 4.21 MB / 460.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.08831, allocations: 1.703 MB / 462 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000566/0.08889, allocations: 23.88 kB / 462 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004114/0.08934, allocations: 142.5 kB / 462.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009686/0.09032, allocations: 266.2 kB / 462.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.09125, allocations: 483.2 kB / 462.8 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001766/0.09303, allocations: 1.344 MB / 464.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007424/0.09379, allocations: 0.567 MB / 464.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006223/0.09442, allocations: 0.5255 MB / 465.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006045/0.09503, allocations: 0.564 MB / 465.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.09521, allocations: 112 kB / 466 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.09552, allocations: 183.9 kB / 466.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003138/0.09584, allocations: 354.9 kB / 466.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004787/0.09633, allocations: 0.5789 MB / 467.1 MB, free: 344 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.09758, allocations: 1.351 MB / 468.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09759, allocations: 0 / 468.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.0976, allocations: 0 / 468.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.09762, allocations: 0 / 468.4 MB, free: 14.98 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.003046/0.1007, allocations: 1.661 MB / 470.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1007, allocations: 8.031 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008681/0.1016, allocations: 191.2 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.1028, allocations: 0.8077 MB / 471.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.1029, allocations: 78.36 kB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.1031, allocations: 104.4 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.1053, allocations: 1.315 MB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.1054, allocations: 11.98 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.1055, allocations: 59.94 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.233e-05/0.1056, allocations: 42 kB / 472.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002246/0.1078, allocations: 1.042 MB / 473.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.1125, allocations: 3.335 MB / 477.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.1143, allocations: 0.9354 MB / 478 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.1154, allocations: 0.5845 MB / 478.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.1156, allocations: 174.8 kB / 478.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.1173, allocations: 1.121 MB / 479.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.635e-06/0.1173, allocations: 0 / 479.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=109): time 0.006611/0.1239, allocations: 3.314 MB / 483.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001952/0.1242, allocations: 448.1 kB / 483.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009304/0.1251, allocations: 0.8251 MB / 484.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.1252, allocations: 77.67 kB / 484.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003545/0.1256, allocations: 488.3 kB / 485 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/0.1258, allocations: 308 kB / 485.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/0.1261, allocations: 259.5 kB / 485.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1263, allocations: 309.1 kB / 485.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007436/0.127, allocations: 407.7 kB / 486.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.128, allocations: 0.8193 MB / 487.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.1296, allocations: 1.192 MB / 488.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.1297, allocations: 4 kB / 488.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002222/0.1319, allocations: 1.414 MB / 489.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.736e-05/0.132, allocations: 105 kB / 489.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.132, allocations: 12.84 kB / 489.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.814e-05/0.132, allocations: 16.19 kB / 489.8 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006793/0.1327, allocations: 203.6 kB / 490 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/0.1328, allocations: 23.92 kB / 490 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007275/0.1335, allocations: 123.8 kB / 490.2 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-05/0.1336, allocations: 59.98 kB / 490.2 MB, free: 8.199 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.0005956/0.1342, allocations: 475.3 kB / 490.7 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.1344, allocations: 114.7 kB / 490.8 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/0.1373, allocations: 1.527 MB / 492.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.1373, allocations: 12 kB / 492.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1373, allocations: 0 / 492.3 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.1373, allocations: 7.969 kB / 492.3 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.1418, allocations: 2.689 MB / 495 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.1418, allocations: 4 kB / 495 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004962/0.1423, allocations: 107.8 kB / 495.1 MB, free: 3.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.1424, allocations: 4 kB / 495.1 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-05/0.1425, allocations: 51.92 kB / 495.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.1425, allocations: 4 kB / 495.2 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1425, allocations: 4 kB / 495.2 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00411/0.1466, allocations: 2.253 MB / 497.5 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005154/0.1471, allocations: 287.6 kB / 497.7 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.1474, allocations: 59.98 kB / 497.8 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008242/0.1482, allocations: 115.8 kB / 497.9 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.1485, allocations: 140.8 kB / 498 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.1487, allocations: 107.8 kB / 498.1 MB, free: 96 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007146/0.1494, allocations: 0.5536 MB / 498.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1494, allocations: 0 / 498.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009154/0.1503, allocations: 252 kB / 498.9 MB, free: 15.3 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.0003169/0.1506, allocations: 219.2 kB / 499.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.153, allocations: 1.422 MB / 0.4889 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.153, allocations: 0.5625 kB / 0.4889 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.1545, allocations: 1.036 MB / 0.4899 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000801/0.1553, allocations: 149.8 kB / 0.49 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.1591, allocations: 2.322 MB / 0.4923 GB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.1597, allocations: 1.1 MB / 0.4933 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.16, allocations: 103.4 kB / 0.4934 GB, free: 8.832 MB / 382.1 MB Notification: Performance of SimCode: time 2.044e-06/0.16, allocations: 0 / 0.4934 GB, free: 8.832 MB / 382.1 MB Notification: Performance of Templates: time 0.2092/0.3692, allocations: 14.61 MB / 0.5077 GB, free: 50.05 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