Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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.001773/0.001773, allocations: 83.44 kB / 19.02 MB, free: 2.719 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.001888/0.001888, allocations: 160.2 kB / 22.26 MB, free: 4.715 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.576/1.576, allocations: 177.2 MB / 202.6 MB, free: 9.273 MB / 190.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.01328/0.01328, allocations: 1.991 MB / 261 MB, free: 14.84 MB / 254.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.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [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.003144/0.003144, allocations: 111.8 kB / 384.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1238, allocations: 53.96 MB / 438.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005532/0.1294, allocations: 2.828 MB / 441.3 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.1321, allocations: 1.301 MB / 442.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003279/0.1325, allocations: 23.81 kB / 442.7 MB, free: 7.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004271/0.1329, allocations: 91.17 kB / 442.8 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.1343, allocations: 410.1 kB / 443.2 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003636/0.1346, allocations: 183.7 kB / 443.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.1358, allocations: 0.7759 MB / 444.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004149/0.1362, allocations: 233.8 kB / 444.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006001/0.1368, allocations: 454.8 kB / 444.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004607/0.1373, allocations: 334.6 kB / 445.1 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.1374, allocations: 64 kB / 445.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003352/0.1377, allocations: 155.9 kB / 445.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.138, allocations: 243.3 kB / 445.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.1383, allocations: 266.5 kB / 445.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.1394, allocations: 0.8754 MB / 446.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1394, allocations: 0 / 446.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1395, allocations: 3.938 kB / 446.7 MB, free: 3.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1395, allocations: 0 / 446.7 MB, free: 3.512 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002988/0.1425, allocations: 1.159 MB / 447.9 MB, free: 2.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.1425, allocations: 12.02 kB / 447.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.1428, allocations: 92.36 kB / 448 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008604/0.1436, allocations: 0.4986 MB / 448.5 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.1437, allocations: 41.67 kB / 448.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.802e-05/0.1438, allocations: 52.33 kB / 448.6 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.1453, allocations: 0.8516 MB / 449.4 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.1453, allocations: 4 kB / 449.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.716e-05/0.1454, allocations: 20 kB / 449.4 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.079e-05/0.1455, allocations: 49.22 kB / 449.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.1471, allocations: 0.6141 MB / 450.1 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2504/0.3975, allocations: 1.892 MB / 452 MB, free: 21.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.3991, allocations: 0.5363 MB / 452.5 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006088/0.3997, allocations: 246.4 kB / 452.8 MB, free: 20.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.3998, allocations: 21.11 kB / 452.8 MB, free: 20.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.3999, allocations: 50.72 kB / 452.8 MB, free: 20.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.936e-06/0.3999, allocations: 0 / 452.8 MB, free: 20.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002301/0.4022, allocations: 0.7142 MB / 453.5 MB, free: 20.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.4022, allocations: 55.62 kB / 453.6 MB, free: 20.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007488/0.4029, allocations: 0.5188 MB / 454.1 MB, free: 20.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.403, allocations: 36.05 kB / 454.2 MB, free: 20.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.4033, allocations: 339.1 kB / 454.5 MB, free: 20.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.4034, allocations: 139.3 kB / 454.6 MB, free: 19.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.4036, allocations: 119.8 kB / 454.7 MB, free: 19.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4037, allocations: 363.3 kB / 455.1 MB, free: 19.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00066/0.4044, allocations: 222.5 kB / 455.3 MB, free: 19.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007559/0.4051, allocations: 342.9 kB / 455.6 MB, free: 19.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.4063, allocations: 494.1 kB / 456.1 MB, free: 19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4063, allocations: 1 kB / 456.1 MB, free: 19 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00159/0.4079, allocations: 0.624 MB / 456.7 MB, free: 18.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.4079, allocations: 8.531 kB / 456.8 MB, free: 18.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.4079, allocations: 3.594 kB / 456.8 MB, free: 18.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.408, allocations: 7.562 kB / 456.8 MB, free: 18.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.4083, allocations: 87.72 kB / 456.9 MB, free: 18.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.4083, allocations: 9.719 kB / 456.9 MB, free: 18.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.4088, allocations: 81.72 kB / 456.9 MB, free: 18.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/0.4088, allocations: 24.34 kB / 457 MB, free: 18.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003828/0.4092, allocations: 263.9 kB / 457.2 MB, free: 18.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.4094, allocations: 55.86 kB / 457.3 MB, free: 18.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.4111, allocations: 0.6084 MB / 457.9 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.4111, allocations: 8.797 kB / 457.9 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4111, allocations: 0 / 457.9 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4111, allocations: 11.53 kB / 457.9 MB, free: 18.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002508/0.4136, allocations: 1.165 MB / 459.1 MB, free: 17.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4136, allocations: 3.375 kB / 459.1 MB, free: 17.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.4139, allocations: 60.02 kB / 459.1 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4139, allocations: 2.953 kB / 459.1 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.4139, allocations: 15.81 kB / 459.2 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.4139, allocations: 5.188 kB / 459.2 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4139, allocations: 0 / 459.2 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.416, allocations: 0.9571 MB / 460.1 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.4163, allocations: 114.5 kB / 460.2 MB, free: 17.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.267e-05/0.4164, allocations: 6.906 kB / 460.2 MB, free: 17.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.4168, allocations: 66.73 kB / 460.3 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/0.4171, allocations: 118.5 kB / 460.4 MB, free: 17.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.4172, allocations: 19.03 kB / 460.4 MB, free: 17.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004433/0.4176, allocations: 360.2 kB / 460.8 MB, free: 17.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4176, allocations: 0 / 460.8 MB, free: 17.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006486/0.4182, allocations: 155.9 kB / 460.9 MB, free: 17.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * 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.0002648/0.4185, allocations: 148.7 kB / 461.1 MB, free: 16.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.4203, allocations: 0.5187 MB / 461.6 MB, free: 16.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4203, allocations: 1.25 kB / 461.6 MB, free: 16.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006992/0.421, allocations: 278.2 kB / 461.9 MB, free: 16.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004885/0.4215, allocations: 62.42 kB / 461.9 MB, free: 16.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.4238, allocations: 1.249 MB / 463.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.4242, allocations: 347.3 kB / 463.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004579/0.4247, allocations: 177.1 kB / 463.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.4248, allocations: 61.58 kB / 463.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4248, allocations: 3.938 kB / 463.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Templates: time 0.01416/0.439, allocations: 6.811 MB / 470.6 MB, free: 13.8 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.369541924446821] Failed to read output from testmodel.py, exit status != 0: 0.4479095656424761 0.45917912600000005 0.317513582 Calling exit ...