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.001635/0.001635, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.00195/0.00195, allocations: 173.7 kB / 22.46 MB, free: 5.355 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.475/1.475, allocations: 177.1 MB / 202.8 MB, free: 9.176 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.01372/0.01372, allocations: 1.991 MB / 261.2 MB, free: 14.72 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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 384.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.26e-05/3.424e-05, allocations: 5.375 kB / 384.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005148/0.005182, allocations: 2.837 MB / 387.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002982/0.008164, allocations: 1.309 MB / 388.9 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005087/0.008672, allocations: 15.94 kB / 388.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005093/0.009182, allocations: 103 kB / 389 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.01086, allocations: 405.8 kB / 389.4 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005443/0.0114, allocations: 175.7 kB / 389.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.01284, allocations: 0.7873 MB / 390.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004462/0.01329, allocations: 225.9 kB / 390.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006329/0.01392, allocations: 443.1 kB / 391 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004388/0.01436, allocations: 291.2 kB / 391.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.01448, allocations: 64 kB / 391.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003839/0.01486, allocations: 167.7 kB / 391.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002888/0.01515, allocations: 243.3 kB / 391.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002707/0.01542, allocations: 215.4 kB / 392 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.01662, allocations: 0.8917 MB / 392.9 MB, free: 9.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01662, allocations: 0 / 392.9 MB, free: 9.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01663, allocations: 4 kB / 392.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.01664, allocations: 0 / 392.9 MB, free: 9.465 MB / 318.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.003304/0.01994, allocations: 1.147 MB / 394 MB, free: 8.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.01998, allocations: 12.03 kB / 394.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/0.02029, allocations: 88.41 kB / 394.1 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008947/0.02119, allocations: 0.5057 MB / 394.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.02122, allocations: 37.69 kB / 394.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-05/0.02132, allocations: 52.38 kB / 394.7 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.02292, allocations: 0.8483 MB / 395.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.02294, allocations: 8.078 kB / 395.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.869e-05/0.02301, allocations: 27.94 kB / 395.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.814e-05/0.02308, allocations: 37.3 kB / 395.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.02484, allocations: 0.6257 MB / 396.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004053/0.02889, allocations: 1.893 MB / 398.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.03083, allocations: 0.5459 MB / 398.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007302/0.03156, allocations: 248.7 kB / 399 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.03168, allocations: 19.98 kB / 399 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.03172, allocations: 39.28 kB / 399 MB, free: 3.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.004e-06/0.03172, allocations: 0 / 399 MB, free: 3.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.00246/0.03418, allocations: 0.7234 MB / 399.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.03423, allocations: 59.34 kB / 399.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006823/0.03491, allocations: 0.5098 MB / 400.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.03496, allocations: 37.7 kB / 400.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.03524, allocations: 340.7 kB / 400.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.03538, allocations: 138.8 kB / 400.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.03557, allocations: 106.2 kB / 400.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.03576, allocations: 370.8 kB / 401.3 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007119/0.03647, allocations: 224.8 kB / 401.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008234/0.03729, allocations: 342.5 kB / 401.8 MB, free: 228 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.0387, allocations: 498.3 kB / 402.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.0387, allocations: 4 kB / 402.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001784/0.04049, allocations: 0.6119 MB / 402.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.0405, allocations: 8.047 kB / 402.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.04052, allocations: 7.938 kB / 403 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.04054, allocations: 11.94 kB / 403 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.04089, allocations: 87.81 kB / 403 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.04091, allocations: 12 kB / 403.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/0.04141, allocations: 71.94 kB / 403.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.04147, allocations: 31.98 kB / 403.2 MB, free: 14.84 MB / 334.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.0003725/0.04184, allocations: 260.3 kB / 403.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.04201, allocations: 59.62 kB / 403.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.04383, allocations: 0.6195 MB / 404.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.04384, allocations: 7.938 kB / 404.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.04384, allocations: 0 / 404.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.04385, allocations: 3.984 kB / 404.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.04659, allocations: 1.158 MB / 405.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.04659, allocations: 0 / 405.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.04687, allocations: 63.89 kB / 405.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.04687, allocations: 3.938 kB / 405.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/0.04692, allocations: 19.98 kB / 405.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.04693, allocations: 3.938 kB / 405.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.04693, allocations: 4 kB / 405.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.04953, allocations: 0.9476 MB / 406.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.04977, allocations: 107.5 kB / 406.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.005e-05/0.04986, allocations: 19.92 kB / 406.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/0.05037, allocations: 55.92 kB / 406.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/0.05067, allocations: 115.8 kB / 406.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/0.05073, allocations: 19.98 kB / 406.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004838/0.05121, allocations: 354.8 kB / 407 MB, free: 10.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.05121, allocations: 0 / 407 MB, free: 10.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000621/0.05183, allocations: 171.6 kB / 407.1 MB, free: 10.8 MB / 334.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.000313/0.05214, allocations: 149 kB / 407.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.05382, allocations: 0.525 MB / 407.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.05383, allocations: 256 / 407.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008067/0.05463, allocations: 279.5 kB / 408.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005058/0.05514, allocations: 53.95 kB / 408.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.05783, allocations: 1.212 MB / 409.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.05831, allocations: 347.3 kB / 409.7 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004747/0.05879, allocations: 180.3 kB / 409.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.05897, allocations: 56.48 kB / 409.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.05897, allocations: 0 / 409.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of Templates: time 0.01568/0.07465, allocations: 6.791 MB / 416.7 MB, free: 1.246 MB / 334.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: 4.7904649041593075] Failed to read output from testmodel.py, exit status != 0: 0.08410721644759178 0.107732268 0.086071249 Calling exit ...