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] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003701/0.0003701, allocations: 0 / 0, free: 0 / 0 " [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.0004966/0.0004966, allocations: 0 / 0, free: 0 / 0 " [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 0.4143/0.4143, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] 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.007258/0.007258, allocations: 0 / 0, free: 0 / 0 " [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: simulate(BLDC.Examples.DemoEncoder,startTime=0,stopTime=3,tolerance=1e-06,numberOfIntervals=300000,outputFormat="empty",variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder",simflags="-alarm=480 -lv LOG_STATS") simulate(BLDC.Examples.DemoEncoder,startTime=0,stopTime=3,tolerance=1e-06,numberOfIntervals=300000,outputFormat="empty",variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder",simflags="-alarm=480 -lv LOG_STATS") [Timeout 1140] "Notification: Performance of FrontEnd - loaded program: time 9.11e-07/9.11e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.578e-05/2.669e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.01104/0.01106, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.006979/0.01804, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.01908, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0009454/0.02002, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001992/0.02202, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002237/0.02425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.00301/0.02726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.00162/0.02888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.002553/0.03144, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.03305, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0003805/0.03343, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0006166/0.03405, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0008732/0.03492, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.001381/0.0363, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.004093/0.0404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0003264/0.04072, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.667e-06/0.04073, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 2.612e-05/0.04075, allocations: 0 / 0, free: 0 / 0 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.008566/0.04932, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001418/0.04946, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003791/0.05325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.004322/0.05757, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002394/0.05781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005997/0.05841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.008521/0.06694, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 7.803e-05/0.06701, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004374/0.06745, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000182/0.06763, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007284/0.07492, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.09064, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.00499/0.09563, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003007/0.09864, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.0002082/0.09885, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005334/0.1042, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=108): time 0.0001753/0.1044, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=109): time 0.02276/0.1271, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004465/0.1276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003055/0.1306, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005392/0.1312, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0009841/0.1321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0006487/0.1328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/0.1343, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003524/0.1346, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.002528/0.1371, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.003235/0.1404, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.00476/0.1451, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.719e-05/0.1452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=182) (initialization): time 0.008201/0.1534, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001777/0.1535, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.917e-05/0.1536, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 8.19e-05/0.1537, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.1552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.834e-05/0.1553, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.157, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003377/0.1573, allocations: 0 / 0, free: 0 / 0 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.002308/0.1596, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009895/0.1606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009806/0.1704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/0.1704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.1704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.754e-05/0.1705, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/0.186, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.186, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.1871, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-05/0.1871, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004464/0.1876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.162e-05/0.1876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.1876, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01331/0.2009, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.002141/0.203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/0.2039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.2054, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001424/0.2068, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005651/0.2074, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.001891/0.2093, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 5.059e-05/0.2093, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.003059/0.2124, allocations: 0 / 0, free: 0 / 0 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.001153/0.2136, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.006719/0.2203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.2203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.003987/0.2243, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/0.2281, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.2392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001834/0.241, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001272/0.2423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001764/0.244, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0006912/0.2447, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.005595/0.2503, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1137] [Calling sys.exit(0), Time elapsed: 3.9130063399989012]