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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 110.2 kB / 19.69 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 216.1 kB / 23.01 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02222/0.02222, allocations: 2.619 MB / 315.8 MB, free: 500 kB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") translateModel(BLDC.Examples.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") [Timeout 660] "Notification: BLDC requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package ModelicaServices of version 4.0.0. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003017/0.003017, allocations: 107.8 kB / 439.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09459, allocations: 53.98 MB / 493.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.006125/0.1007, allocations: 4.261 MB / 497.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.1037, allocations: 1.75 MB / 499.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002792/0.104, allocations: 31.75 kB / 499.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003596/0.1043, allocations: 146.5 kB / 499.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008153/0.1051, allocations: 290.1 kB / 499.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007768/0.1059, allocations: 491.2 kB / 0.4887 GB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001627/0.1075, allocations: 1.317 MB / 0.4899 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006112/0.1082, allocations: 393.2 kB / 0.4903 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000611/0.1088, allocations: 0.5373 MB / 0.4908 GB, free: 14.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007218/0.1095, allocations: 0.5873 MB / 0.4914 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.1096, allocations: 116 kB / 0.4915 GB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002965/0.1099, allocations: 179.9 kB / 0.4917 GB, free: 13.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003627/0.1103, allocations: 366.8 kB / 0.492 GB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005549/0.1109, allocations: 0.5751 MB / 0.4926 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.1123, allocations: 1.369 MB / 0.4939 GB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1123, allocations: 0 / 0.4939 GB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1123, allocations: 4 kB / 0.4939 GB, free: 11.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1123, allocations: 0 / 0.4939 GB, free: 11.24 MB / 366.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.00309/0.1154, allocations: 1.628 MB / 0.4955 GB, free: 9.559 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1154, allocations: 8.031 kB / 0.4955 GB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009128/0.1164, allocations: 204 kB / 0.4957 GB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.1177, allocations: 0.7362 MB / 0.4965 GB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.408e-05/0.1177, allocations: 78.38 kB / 0.4965 GB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.1179, allocations: 112.4 kB / 0.4966 GB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.1203, allocations: 1.311 MB / 0.4979 GB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.1203, allocations: 4 kB / 0.4979 GB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.1204, allocations: 59.94 kB / 0.498 GB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.783e-05/0.1205, allocations: 45.98 kB / 0.498 GB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/0.1227, allocations: 1.034 MB / 0.499 GB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005026/0.1278, allocations: 3.302 MB / 0.5023 GB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.1295, allocations: 0.7907 MB / 0.503 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.1306, allocations: 466.5 kB / 0.5035 GB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/0.1307, allocations: 24.62 kB / 0.5035 GB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/0.1325, allocations: 1.114 MB / 0.5046 GB, free: 56 kB / 366.1 MB Notification: Performance of pre-optimization done (n=108): time 2.474e-06/0.1325, allocations: 0 / 0.5046 GB, free: 56 kB / 366.1 MB Notification: Performance of matching and sorting (n=109): time 0.2061/0.3386, allocations: 3.264 MB / 0.5078 GB, free: 23.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.3387, allocations: 453.6 kB / 0.5082 GB, free: 22.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.3398, allocations: 0.8283 MB / 0.509 GB, free: 22.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.3399, allocations: 76.14 kB / 0.5091 GB, free: 22.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.3402, allocations: 499.6 kB / 0.5096 GB, free: 21.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.3404, allocations: 314.2 kB / 0.5099 GB, free: 21.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003258/0.3408, allocations: 267.8 kB / 0.5101 GB, free: 21.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.117e-05/0.3408, allocations: 304.2 kB / 0.5104 GB, free: 21.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007697/0.3416, allocations: 408 kB / 0.5108 GB, free: 21.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009862/0.3426, allocations: 0.8239 MB / 0.5116 GB, free: 20.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.344, allocations: 1.2 MB / 0.5128 GB, free: 19.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.3441, allocations: 2.969 kB / 0.5128 GB, free: 19.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002458/0.3465, allocations: 1.419 MB / 0.5142 GB, free: 19.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.613e-05/0.3466, allocations: 99.23 kB / 0.5143 GB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.3466, allocations: 14.91 kB / 0.5143 GB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.766e-05/0.3466, allocations: 17.34 kB / 0.5143 GB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006804/0.3473, allocations: 206.3 kB / 0.5145 GB, free: 18.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-05/0.3473, allocations: 24.75 kB / 0.5145 GB, free: 18.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007895/0.3481, allocations: 130.4 kB / 0.5146 GB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3483, allocations: 53.53 kB / 0.5147 GB, free: 18.88 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.0007729/0.349, allocations: 477.6 kB / 0.5151 GB, free: 18.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.3492, allocations: 117.1 kB / 0.5153 GB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/0.3522, allocations: 1.526 MB / 0.5167 GB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.3522, allocations: 8.25 kB / 0.5167 GB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3522, allocations: 5.375 kB / 0.5168 GB, free: 17.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.3522, allocations: 5.062 kB / 0.5168 GB, free: 17.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004668/0.3569, allocations: 2.665 MB / 0.5194 GB, free: 16.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.3569, allocations: 0 / 0.5194 GB, free: 16.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/0.3574, allocations: 103.8 kB / 0.5195 GB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.3574, allocations: 4.031 kB / 0.5195 GB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.511e-05/0.3575, allocations: 47.62 kB / 0.5195 GB, free: 16.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.3575, allocations: 4.781 kB / 0.5195 GB, free: 16.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3575, allocations: 4.734 kB / 0.5195 GB, free: 16.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004098/0.3616, allocations: 2.27 MB / 0.5217 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005518/0.3621, allocations: 214.6 kB / 0.5219 GB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.3623, allocations: 62.28 kB / 0.522 GB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007737/0.3631, allocations: 119.1 kB / 0.5221 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.3634, allocations: 145.4 kB / 0.5223 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001936/0.3636, allocations: 106.3 kB / 0.5224 GB, free: 15.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007244/0.3643, allocations: 0.55 MB / 0.5229 GB, free: 15.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3643, allocations: 0 / 0.5229 GB, free: 15.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00102/0.3654, allocations: 262.4 kB / 0.5231 GB, free: 15.34 MB / 366.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.0002859/0.3656, allocations: 206.6 kB / 0.5233 GB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.368, allocations: 1.303 MB / 0.5246 GB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.368, allocations: 0.5 kB / 0.5246 GB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.3692, allocations: 0.7146 MB / 0.5253 GB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007865/0.37, allocations: 143.7 kB / 0.5254 GB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.3736, allocations: 2.351 MB / 0.5277 GB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.374, allocations: 1.101 MB / 0.5288 GB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.3743, allocations: 96.42 kB / 0.5289 GB, free: 12.3 MB / 366.1 MB Notification: Performance of SimCode: time 1.123e-06/0.3743, allocations: 4 kB / 0.5289 GB, free: 12.29 MB / 366.1 MB Notification: Performance of Templates: time 0.01724/0.3915, allocations: 14.64 MB / 0.5432 GB, free: 14.26 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoEncoder.makefile [Timeout 660] 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 [Calling os._exit(0), Time elapsed: 4.305042135063559] Failed to read output from testmodel.py, exit status != 0: 0.3989375550299883 0.41423910499999994 0.29893646799999996 Calling exit ...