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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 113.5 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 193.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 245.7 MB, free: 4.223 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.1298/0.1298, allocations: 2.585 MB / 300.5 MB, free: 4.402 MB / 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.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.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: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 103.8 kB / 414.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2262, allocations: 50.03 MB / 464.7 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003454/0.2297, allocations: 3.007 MB / 467.7 MB, free: 20.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.2317, allocations: 1.316 MB / 469.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003045/0.232, allocations: 16.12 kB / 469.1 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.2324, allocations: 94.28 kB / 469.2 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.2335, allocations: 441.9 kB / 469.6 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003322/0.2338, allocations: 178.6 kB / 469.8 MB, free: 19.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.2348, allocations: 0.7702 MB / 470.5 MB, free: 18.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004429/0.2353, allocations: 359 kB / 470.9 MB, free: 18.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003309/0.2356, allocations: 324.9 kB / 471.2 MB, free: 18.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003354/0.236, allocations: 326.7 kB / 471.5 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.65e-05/0.2361, allocations: 62.56 kB / 471.6 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003054/0.2364, allocations: 152.7 kB / 471.7 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.2366, allocations: 233.1 kB / 472 MB, free: 18.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.2369, allocations: 338.3 kB / 472.3 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009766/0.2379, allocations: 0.8525 MB / 473.2 MB, free: 17.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2379, allocations: 1.125 kB / 473.2 MB, free: 17.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2379, allocations: 4 kB / 473.2 MB, free: 17.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2379, allocations: 0 / 473.2 MB, free: 17.64 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002816/0.2407, allocations: 1.2 MB / 474.4 MB, free: 16.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2408, allocations: 9.469 kB / 474.4 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.241, allocations: 91.84 kB / 474.5 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007492/0.2418, allocations: 0.5644 MB / 475 MB, free: 16.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.534e-05/0.2418, allocations: 41.97 kB / 475.1 MB, free: 16.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.2419, allocations: 50.28 kB / 475.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.2434, allocations: 0.7233 MB / 475.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.2434, allocations: 0.9844 kB / 475.8 MB, free: 16.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-05/0.2435, allocations: 25.27 kB / 475.9 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.287e-05/0.2435, allocations: 46.53 kB / 475.9 MB, free: 16.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.2451, allocations: 0.6205 MB / 476.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.249, allocations: 2.196 MB / 478.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.2508, allocations: 0.5652 MB / 479.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007215/0.2515, allocations: 259.1 kB / 479.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.2517, allocations: 184.9 kB / 479.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.2517, allocations: 38.22 kB / 479.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.944e-06/0.2517, allocations: 1 kB / 479.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002315/0.254, allocations: 0.7217 MB / 480.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.2541, allocations: 56.3 kB / 480.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008587/0.2549, allocations: 0.6181 MB / 481.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.928e-05/0.255, allocations: 34.48 kB / 481.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.2552, allocations: 330.4 kB / 481.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2553, allocations: 138.7 kB / 481.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.2555, allocations: 112 kB / 481.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2556, allocations: 371.6 kB / 482.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006343/0.2563, allocations: 221.5 kB / 482.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006775/0.2569, allocations: 343.8 kB / 482.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.2582, allocations: 0.4886 MB / 483.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.2582, allocations: 1.094 kB / 483.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001731/0.2599, allocations: 0.6222 MB / 483.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.2599, allocations: 7.281 kB / 483.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.26, allocations: 3.375 kB / 483.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.26, allocations: 6.562 kB / 483.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.2603, allocations: 90.73 kB / 483.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.2604, allocations: 7.203 kB / 483.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005616/0.2609, allocations: 82.27 kB / 484 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.261, allocations: 27.86 kB / 484 MB, free: 11.91 MB / 350.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.0003774/0.2614, allocations: 267.8 kB / 484.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/0.2616, allocations: 70.38 kB / 484.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.2633, allocations: 0.6162 MB / 484.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2633, allocations: 5.219 kB / 485 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2633, allocations: 0 / 485 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2633, allocations: 3.297 kB / 485 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.266, allocations: 1.344 MB / 486.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.266, allocations: 1.375 kB / 486.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.2663, allocations: 58.19 kB / 486.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.2663, allocations: 6.594 kB / 486.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.2664, allocations: 20.34 kB / 486.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.2664, allocations: 2.031 kB / 486.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2664, allocations: 8.578 kB / 486.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.2687, allocations: 0.9522 MB / 487.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.269, allocations: 205.9 kB / 487.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.88e-05/0.2691, allocations: 10.5 kB / 487.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004671/0.2696, allocations: 57.67 kB / 487.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.2698, allocations: 116.6 kB / 487.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.2699, allocations: 19.39 kB / 487.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004852/0.2704, allocations: 432.1 kB / 488.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2704, allocations: 0 / 488.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006526/0.271, allocations: 155.6 kB / 488.3 MB, free: 9.758 MB / 350.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.0002438/0.2713, allocations: 143.8 kB / 488.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.2728, allocations: 0.543 MB / 489 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2728, allocations: 0 / 489 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006935/0.2735, allocations: 292 kB / 489.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.2741, allocations: 63.28 kB / 489.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.2765, allocations: 1.309 MB / 490.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.2769, allocations: 0.9442 MB / 491.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.2771, allocations: 70.19 kB / 491.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2771, allocations: 0 / 491.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of Templates: time 0.01269/0.2898, allocations: 9.128 MB / 0.4891 GB, free: 0.9297 MB / 350.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: 7.9140976830385625] Failed to read output from testmodel.py, exit status != 0: 0.2968536380212754 0.310268084 0.069457716 Calling exit ...