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.001122/0.001122, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001427/0.001427, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9618/0.9618, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.008381/0.008381, allocations: 1.981 MB / 261.2 MB, free: 11.27 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: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.465e-06/2.465e-06, allocations: 0 / 384.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/3.018e-05, allocations: 2.281 kB / 384.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003302/0.003333, allocations: 2.845 MB / 387.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.005663, allocations: 1.297 MB / 388.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.006044, allocations: 19.88 kB / 388.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003625/0.006406, allocations: 103.1 kB / 388.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.007541, allocations: 409.7 kB / 388.9 MB, free: 8.859 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.007864, allocations: 171.8 kB / 389.1 MB, free: 8.691 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.008877, allocations: 0.7912 MB / 389.9 MB, free: 7.895 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003469/0.009224, allocations: 225.9 kB / 390.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004717/0.009696, allocations: 447.1 kB / 390.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.009983, allocations: 287.2 kB / 390.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.01005, allocations: 67.94 kB / 390.9 MB, free: 6.883 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003047/0.01035, allocations: 167.7 kB / 391 MB, free: 6.719 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000184/0.01054, allocations: 239.3 kB / 391.3 MB, free: 6.484 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.01069, allocations: 211.4 kB / 391.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008431/0.01153, allocations: 0.8917 MB / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.01154, allocations: 0 / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.01154, allocations: 0 / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.01155, allocations: 3.938 kB / 392.4 MB, free: 5.379 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.002084/0.01363, allocations: 1.155 MB / 393.5 MB, free: 4.191 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.01368, allocations: 8.031 kB / 393.5 MB, free: 4.184 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.955e-05/0.01377, allocations: 98.69 kB / 393.6 MB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.01396, allocations: 96.34 kB / 393.7 MB, free: 3.984 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.01456, allocations: 0.4979 MB / 394.2 MB, free: 3.457 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.0146, allocations: 37.69 kB / 394.3 MB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.311e-05/0.01466, allocations: 48.38 kB / 394.3 MB, free: 3.371 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.01569, allocations: 0.86 MB / 395.2 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.01571, allocations: 3.938 kB / 395.2 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.01575, allocations: 20 kB / 395.2 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.597e-05/0.01579, allocations: 45.3 kB / 395.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.01702, allocations: 0.6179 MB / 395.9 MB, free: 1.781 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.01973, allocations: 1.997 MB / 397.9 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009739/0.0207, allocations: 0.5383 MB / 398.4 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.02108, allocations: 248.6 kB / 398.6 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.02119, allocations: 19.98 kB / 398.7 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.02121, allocations: 43.28 kB / 398.7 MB, free: 14.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 3.546e-06/0.02121, allocations: 0 / 398.7 MB, free: 14.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001317/0.02253, allocations: 0.7272 MB / 399.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.02257, allocations: 55.41 kB / 399.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005821/0.02315, allocations: 0.6201 MB / 400.1 MB, free: 13.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.02319, allocations: 37.7 kB / 400.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.0234, allocations: 332.4 kB / 400.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.577e-05/0.02349, allocations: 142.8 kB / 400.6 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.02362, allocations: 110.1 kB / 400.7 MB, free: 12.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.02376, allocations: 374.8 kB / 401.1 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.02415, allocations: 220.8 kB / 401.3 MB, free: 12.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.02457, allocations: 349.4 kB / 401.6 MB, free: 11.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.02531, allocations: 498.4 kB / 402.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.02532, allocations: 7.938 kB / 402.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001369/0.02669, allocations: 0.6118 MB / 402.7 MB, free: 10.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.02672, allocations: 15.88 kB / 402.8 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.02673, allocations: 4 kB / 402.8 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.02675, allocations: 8 kB / 402.8 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.02696, allocations: 80.47 kB / 402.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.02697, allocations: 23.86 kB / 402.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.02727, allocations: 79.53 kB / 402.9 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.0273, allocations: 27.98 kB / 403 MB, free: 10.41 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.000337/0.02764, allocations: 267.5 kB / 403.2 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.02777, allocations: 71.56 kB / 403.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.02881, allocations: 0.6126 MB / 403.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.02882, allocations: 7.984 kB / 403.9 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.02883, allocations: 0 / 403.9 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.02884, allocations: 3.984 kB / 403.9 MB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.03057, allocations: 1.236 MB / 405.2 MB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.03057, allocations: 4 kB / 405.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.03071, allocations: 59.89 kB / 405.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.03072, allocations: 4 kB / 405.2 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.03074, allocations: 19.98 kB / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.03074, allocations: 0 / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.03075, allocations: 0 / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.03212, allocations: 0.963 MB / 406.2 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.03231, allocations: 123.5 kB / 406.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.03236, allocations: 8 kB / 406.3 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.03259, allocations: 55.92 kB / 406.4 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.03277, allocations: 127.8 kB / 406.5 MB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.0328, allocations: 19.98 kB / 406.5 MB, free: 6.758 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004035/0.0332, allocations: 434.8 kB / 407 MB, free: 6.336 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0332, allocations: 0 / 407 MB, free: 6.336 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004443/0.03364, allocations: 151.7 kB / 407.1 MB, free: 6.188 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.001744/0.03539, allocations: 1.543 MB / 408.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009392/0.03633, allocations: 0.5327 MB / 409.2 MB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.03633, allocations: 0 / 409.2 MB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.03673, allocations: 275.4 kB / 409.5 MB, free: 3.816 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.03714, allocations: 70.23 kB / 409.5 MB, free: 3.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.04396, allocations: 5.745 MB / 415.3 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.04424, allocations: 347.3 kB / 415.6 MB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003579/0.0446, allocations: 188.5 kB / 415.8 MB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.04486, allocations: 244.4 kB / 416 MB, free: 13.03 MB / 394.7 MB Notification: Performance of SimCode: time 2.184e-06/0.04487, allocations: 4 kB / 416 MB, free: 13.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.07673, allocations: 14.39 MB / 430.4 MB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/7.802, allocations: 9.562 kB / 430.4 MB, free: 14.82 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.DemoElectronicCommutator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.951614994555712] Failed to read output from testmodel.py, exit status != 0: 7.889053203165531 7.898236983 7.884643757 Calling exit ...