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.0007277/0.0007277, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0007157/0.0007157, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8266/0.8266, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [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.007573/0.007573, allocations: 1.984 MB / 261.9 MB, free: 11.28 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 385.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.568e-05, allocations: 6.219 kB / 385.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002972/0.002998, allocations: 2.837 MB / 388.4 MB, free: 10.2 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.00457, allocations: 1.301 MB / 389.7 MB, free: 8.895 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.004755, allocations: 15.88 kB / 389.7 MB, free: 8.879 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.005039, allocations: 103.1 kB / 389.8 MB, free: 8.777 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008083/0.005847, allocations: 409.8 kB / 390.2 MB, free: 8.375 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.00607, allocations: 171.7 kB / 390.4 MB, free: 8.207 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008357/0.006905, allocations: 0.799 MB / 391.1 MB, free: 7.402 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.007186, allocations: 221.9 kB / 391.4 MB, free: 7.18 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003267/0.007513, allocations: 443.1 kB / 391.8 MB, free: 6.746 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.00776, allocations: 291.2 kB / 392.1 MB, free: 6.461 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.832e-05/0.007818, allocations: 60 kB / 392.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.008011, allocations: 171.7 kB / 392.3 MB, free: 6.234 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004159/0.008427, allocations: 243.3 kB / 392.5 MB, free: 5.996 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.008559, allocations: 211.4 kB / 392.8 MB, free: 5.789 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006815/0.00924, allocations: 0.8878 MB / 393.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.009243, allocations: 0 / 393.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.009245, allocations: 0 / 393.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.009252, allocations: 3.938 kB / 393.6 MB, free: 4.895 MB / 362.7 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.001737/0.01099, allocations: 1.147 MB / 394.8 MB, free: 3.715 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.01102, allocations: 8.031 kB / 394.8 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.0112, allocations: 96.34 kB / 394.9 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.01175, allocations: 0.5095 MB / 395.4 MB, free: 3.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.01178, allocations: 37.69 kB / 395.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.01183, allocations: 48.38 kB / 395.5 MB, free: 2.988 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009045/0.01274, allocations: 0.8522 MB / 396.3 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.01276, allocations: 8.188 kB / 396.3 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.01279, allocations: 27.92 kB / 396.4 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-05/0.01283, allocations: 37.3 kB / 396.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008988/0.01373, allocations: 0.6218 MB / 397 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.01588, allocations: 1.9 MB / 398.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009219/0.0168, allocations: 0.5267 MB / 399.5 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006319/0.01743, allocations: 244.7 kB / 399.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.875e-05/0.01752, allocations: 27.91 kB / 399.7 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.01754, allocations: 43.27 kB / 399.8 MB, free: 14.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.01755, allocations: 0 / 399.8 MB, free: 14.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001185/0.01873, allocations: 0.7156 MB / 400.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.01876, allocations: 59.41 kB / 400.5 MB, free: 13.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.01915, allocations: 0.5176 MB / 401.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.01918, allocations: 29.7 kB / 401.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.01934, allocations: 344.7 kB / 401.4 MB, free: 12.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/0.01941, allocations: 138.9 kB / 401.6 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.01952, allocations: 110.2 kB / 401.7 MB, free: 12.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.01963, allocations: 366.8 kB / 402 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.01997, allocations: 216.8 kB / 402.2 MB, free: 12.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.02037, allocations: 350.5 kB / 402.6 MB, free: 11.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.02106, allocations: 498.4 kB / 403.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.02106, allocations: 4 kB / 403.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008903/0.02195, allocations: 0.6117 MB / 403.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.02197, allocations: 10.66 kB / 403.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.02198, allocations: 4.469 kB / 403.7 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.022, allocations: 11.94 kB / 403.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.02218, allocations: 87.83 kB / 403.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.02218, allocations: 8.094 kB / 403.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.02241, allocations: 75.56 kB / 403.9 MB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.02244, allocations: 27.98 kB / 403.9 MB, free: 10.29 MB / 378.7 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.0002158/0.02265, allocations: 255.6 kB / 404.2 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.146e-05/0.02273, allocations: 63.61 kB / 404.2 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009054/0.02364, allocations: 0.6156 MB / 404.8 MB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.02365, allocations: 15.94 kB / 404.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.02365, allocations: 0 / 404.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.02366, allocations: 0 / 404.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.02512, allocations: 1.166 MB / 406 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.02512, allocations: 4 kB / 406 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.02525, allocations: 63.91 kB / 406.1 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.02526, allocations: 3.938 kB / 406.1 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.02528, allocations: 15.98 kB / 406.1 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.02528, allocations: 4 kB / 406.1 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.02528, allocations: 0 / 406.1 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.02678, allocations: 0.9514 MB / 407.1 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.02692, allocations: 111.5 kB / 407.2 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.02696, allocations: 11.94 kB / 407.2 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.02718, allocations: 59.98 kB / 407.2 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.02734, allocations: 119.8 kB / 407.4 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.02736, allocations: 19.98 kB / 407.4 MB, free: 6.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.02761, allocations: 358.8 kB / 407.7 MB, free: 6.398 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02761, allocations: 0 / 407.7 MB, free: 6.398 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000363/0.02797, allocations: 159.6 kB / 407.9 MB, free: 6.242 MB / 378.7 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.0002134/0.02819, allocations: 157 kB / 408 MB, free: 6.082 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008109/0.029, allocations: 0.5165 MB / 408.5 MB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.029, allocations: 4 kB / 408.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.02938, allocations: 275.4 kB / 408.8 MB, free: 5.293 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.02969, allocations: 64.84 kB / 408.9 MB, free: 5.234 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.03108, allocations: 1.249 MB / 410.1 MB, free: 3.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.0313, allocations: 347.3 kB / 410.5 MB, free: 3.586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.03143, allocations: 68.47 kB / 410.5 MB, free: 3.52 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.03143, allocations: 4 kB / 410.5 MB, free: 3.516 MB / 378.7 MB Notification: Performance of Templates: time 0.007772/0.0392, allocations: 9.08 MB / 419.6 MB, free: 10.45 MB / 394.7 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: 4.666570411063731] Failed to read output from testmodel.py, exit status != 0: 0.04509418457746506 0.052328737 0.041510418 Calling exit ...