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.001309/0.001309, allocations: 104.4 kB / 19.7 MB, free: 2.137 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.001687/0.001687, allocations: 218.2 kB / 23 MB, free: 4.965 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.01386/0.01386, allocations: 2.63 MB / 315.8 MB, free: 284 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.003238/0.003238, allocations: 108.3 kB / 439.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.09806, allocations: 53.99 MB / 493.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.00621/0.1043, allocations: 3.853 MB / 497.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003784/0.1081, allocations: 1.695 MB / 498.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007079/0.1088, allocations: 31.75 kB / 498.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005232/0.1093, allocations: 142.5 kB / 499.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.1105, allocations: 282.2 kB / 499.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1116, allocations: 487.2 kB / 499.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002067/0.1137, allocations: 1.321 MB / 0.4894 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000764/0.1145, allocations: 369.2 kB / 0.4898 GB, free: 15.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008308/0.1153, allocations: 0.5334 MB / 0.4903 GB, free: 14.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009531/0.1163, allocations: 0.5366 MB / 0.4908 GB, free: 14.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002882/0.1165, allocations: 112 kB / 0.4909 GB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004394/0.117, allocations: 175.9 kB / 0.4911 GB, free: 13.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000476/0.1175, allocations: 370.8 kB / 0.4914 GB, free: 13.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005872/0.118, allocations: 477.6 kB / 0.4919 GB, free: 13.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.1197, allocations: 1.381 MB / 0.4932 GB, free: 11.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1197, allocations: 0 / 0.4932 GB, free: 11.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1197, allocations: 0 / 0.4932 GB, free: 11.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.1197, allocations: 3.984 kB / 0.4932 GB, free: 11.64 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.003201/0.1229, allocations: 1.631 MB / 0.4948 GB, free: 9.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1229, allocations: 8.031 kB / 0.4948 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009452/0.1239, allocations: 204 kB / 0.495 GB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.1252, allocations: 0.7363 MB / 0.4957 GB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.849e-05/0.1253, allocations: 78.31 kB / 0.4958 GB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.1255, allocations: 108.4 kB / 0.4959 GB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.1281, allocations: 1.574 MB / 0.4975 GB, free: 7.117 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.1281, allocations: 4 kB / 0.4975 GB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.1282, allocations: 55.95 kB / 0.4975 GB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.698e-05/0.1283, allocations: 45.98 kB / 0.4976 GB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002443/0.1307, allocations: 1.154 MB / 0.4987 GB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004854/0.1356, allocations: 2.866 MB / 0.5015 GB, free: 2.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.1374, allocations: 0.854 MB / 0.5023 GB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.1386, allocations: 0.5164 MB / 0.5028 GB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.1387, allocations: 24.64 kB / 0.5029 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2041/0.3428, allocations: 1.381 MB / 0.5042 GB, free: 23.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=108): time 3.847e-06/0.3428, allocations: 0 / 0.5042 GB, free: 23.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=109): time 0.007655/0.3505, allocations: 3.441 MB / 0.5076 GB, free: 22.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.3506, allocations: 451.4 kB / 0.508 GB, free: 22.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.3517, allocations: 0.7088 MB / 0.5087 GB, free: 22.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.3518, allocations: 75.09 kB / 0.5088 GB, free: 22.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003633/0.3522, allocations: 0.5032 MB / 0.5092 GB, free: 21.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00024/0.3524, allocations: 319 kB / 0.5096 GB, free: 21.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003623/0.3528, allocations: 256.2 kB / 0.5098 GB, free: 21.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3529, allocations: 359.5 kB / 0.5101 GB, free: 21.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008505/0.3538, allocations: 499.4 kB / 0.5106 GB, free: 20.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/0.3548, allocations: 1.108 MB / 0.5117 GB, free: 19.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.3564, allocations: 1.204 MB / 0.5129 GB, free: 18.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.3564, allocations: 4 kB / 0.5129 GB, free: 18.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002417/0.3588, allocations: 1.521 MB / 0.5144 GB, free: 18.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.3589, allocations: 106.6 kB / 0.5145 GB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.3589, allocations: 11 kB / 0.5145 GB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.006e-05/0.3589, allocations: 17.81 kB / 0.5145 GB, free: 18.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000684/0.3596, allocations: 203.8 kB / 0.5147 GB, free: 18.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.282e-05/0.3596, allocations: 24.38 kB / 0.5147 GB, free: 18.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008098/0.3605, allocations: 123 kB / 0.5148 GB, free: 18.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.42e-05/0.3605, allocations: 57.42 kB / 0.5149 GB, free: 18.1 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.0005847/0.3611, allocations: 481.5 kB / 0.5153 GB, free: 17.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.3613, allocations: 108.5 kB / 0.5154 GB, free: 17.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/0.3645, allocations: 1.603 MB / 0.517 GB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.3645, allocations: 8.969 kB / 0.517 GB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3645, allocations: 1.469 kB / 0.517 GB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.3645, allocations: 4.688 kB / 0.517 GB, free: 17.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005074/0.3696, allocations: 2.508 MB / 0.5195 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.3696, allocations: 2.562 kB / 0.5195 GB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/0.3702, allocations: 107.3 kB / 0.5196 GB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.11e-05/0.3702, allocations: 9.141 kB / 0.5196 GB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.3703, allocations: 44.19 kB / 0.5196 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.591e-05/0.3703, allocations: 10.59 kB / 0.5196 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3703, allocations: 0.6562 kB / 0.5196 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/0.3751, allocations: 2.429 MB / 0.522 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006509/0.3758, allocations: 199.2 kB / 0.5222 GB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003565/0.3761, allocations: 65.89 kB / 0.5223 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008634/0.377, allocations: 121.6 kB / 0.5224 GB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003136/0.3773, allocations: 141.6 kB / 0.5225 GB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/0.3775, allocations: 106.8 kB / 0.5226 GB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006889/0.3782, allocations: 470.2 kB / 0.5231 GB, free: 14.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3782, allocations: 1.031 kB / 0.5231 GB, free: 14.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3794, allocations: 257.5 kB / 0.5233 GB, free: 14.39 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.0003219/0.3797, allocations: 215 kB / 0.5235 GB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.3824, allocations: 1.466 MB / 0.5249 GB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.3824, allocations: 1.719 kB / 0.525 GB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.3838, allocations: 0.7772 MB / 0.5257 GB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008695/0.3847, allocations: 135.3 kB / 0.5258 GB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.3888, allocations: 2.401 MB / 0.5282 GB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004992/0.3893, allocations: 0.5083 MB / 0.5287 GB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.3896, allocations: 94.45 kB / 0.5288 GB, free: 11.62 MB / 366.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3896, allocations: 0 / 0.5288 GB, free: 11.62 MB / 366.1 MB Notification: Performance of Templates: time 0.02153/0.4111, allocations: 14.56 MB / 0.543 GB, free: 13.47 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 -DOMC_BUILD -DUSE_THREAD -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.12169883819297] Failed to read output from testmodel.py, exit status != 0: 0.4207369559444487 0.43870644000000003 0.31559722100000004 Calling exit ...