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.001353/0.001353, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001502/0.001502, allocations: 220.1 kB / 22.25 MB, free: 5.105 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.84 MB / 206.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.01999/0.01999, allocations: 2.636 MB / 315.1 MB, free: 304 kB / 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.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: 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.003367/0.003367, allocations: 104.4 kB / 438.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1076, allocations: 53.99 MB / 492.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005174/0.1127, allocations: 2.826 MB / 494.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.1158, allocations: 1.294 MB / 496.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005055/0.1163, allocations: 19.88 kB / 496.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005232/0.1168, allocations: 107.1 kB / 496.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001751/0.1186, allocations: 413.8 kB / 496.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.1191, allocations: 163.8 kB / 496.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.1206, allocations: 0.7836 MB / 497.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005438/0.1212, allocations: 237.9 kB / 497.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006206/0.1218, allocations: 330.9 kB / 498.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000625/0.1224, allocations: 354.5 kB / 498.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.1226, allocations: 60 kB / 498.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004351/0.123, allocations: 163.9 kB / 498.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003101/0.1233, allocations: 239.2 kB / 499 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003885/0.1237, allocations: 266.5 kB / 499.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.125, allocations: 0.8754 MB / 0.4885 GB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.125, allocations: 0 / 0.4885 GB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1251, allocations: 4 kB / 0.4885 GB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.971e-05/0.1251, allocations: 0 / 0.4885 GB, free: 15.86 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.003587/0.1287, allocations: 1.155 MB / 0.4896 GB, free: 14.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.1287, allocations: 16.03 kB / 0.4896 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001825/0.1289, allocations: 102.6 kB / 0.4897 GB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.1293, allocations: 92.41 kB / 0.4898 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009777/0.1302, allocations: 0.4909 MB / 0.4903 GB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.51e-05/0.1303, allocations: 41.67 kB / 0.4903 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.1304, allocations: 64.06 kB / 0.4904 GB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.1321, allocations: 0.8594 MB / 0.4912 GB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.1321, allocations: 0 / 0.4912 GB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.738e-05/0.1322, allocations: 27.94 kB / 0.4912 GB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.13e-05/0.1323, allocations: 37.3 kB / 0.4913 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.134, allocations: 0.6257 MB / 0.4919 GB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004206/0.1382, allocations: 2.001 MB / 0.4938 GB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.14, allocations: 0.5384 MB / 0.4944 GB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006669/0.1406, allocations: 249.3 kB / 0.4946 GB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.1408, allocations: 27.92 kB / 0.4946 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.947e-05/0.1408, allocations: 42.52 kB / 0.4947 GB, free: 9.289 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.184e-06/0.1408, allocations: 0 / 0.4947 GB, free: 9.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002228/0.143, allocations: 0.7311 MB / 0.4954 GB, free: 8.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.1431, allocations: 55.41 kB / 0.4954 GB, free: 8.484 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008798/0.144, allocations: 0.6201 MB / 0.496 GB, free: 7.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.794e-05/0.144, allocations: 29.7 kB / 0.4961 GB, free: 7.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003338/0.1443, allocations: 328.4 kB / 0.4964 GB, free: 7.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.1445, allocations: 138.8 kB / 0.4965 GB, free: 7.359 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.1447, allocations: 114.2 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.1449, allocations: 374.8 kB / 0.497 GB, free: 6.863 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006687/0.1456, allocations: 220.8 kB / 0.4972 GB, free: 6.648 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007652/0.1464, allocations: 346.5 kB / 0.4975 GB, free: 6.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.1477, allocations: 490.4 kB / 0.498 GB, free: 5.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1477, allocations: 0 / 0.498 GB, free: 5.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001747/0.1494, allocations: 0.6351 MB / 0.4986 GB, free: 5.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1494, allocations: 8 kB / 0.4986 GB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.1495, allocations: 7.984 kB / 0.4986 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.1495, allocations: 4 kB / 0.4986 GB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.1498, allocations: 83.89 kB / 0.4987 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.1498, allocations: 7.938 kB / 0.4987 GB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005094/0.1503, allocations: 91.78 kB / 0.4988 GB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.033e-05/0.1504, allocations: 23.98 kB / 0.4988 GB, free: 4.867 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.0004058/0.1508, allocations: 263.6 kB / 0.4991 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.151, allocations: 71.5 kB / 0.4991 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/0.1528, allocations: 0.6204 MB / 0.4997 GB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.1528, allocations: 7.984 kB / 0.4998 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1528, allocations: 0 / 0.4998 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.1528, allocations: 0 / 0.4998 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.1556, allocations: 1.24 MB / 0.501 GB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.1556, allocations: 0 / 0.501 GB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.1558, allocations: 63.91 kB / 0.501 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.1559, allocations: 3.938 kB / 0.501 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.616e-05/0.1559, allocations: 15.98 kB / 0.501 GB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-06/0.1559, allocations: 4 kB / 0.5011 GB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1559, allocations: 4 kB / 0.5011 GB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.1583, allocations: 0.9628 MB / 0.502 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.1586, allocations: 127.4 kB / 0.5021 GB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.425e-05/0.1587, allocations: 8 kB / 0.5021 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.1592, allocations: 55.92 kB / 0.5022 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.1595, allocations: 119.8 kB / 0.5023 GB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.1595, allocations: 19.98 kB / 0.5023 GB, free: 1.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006116/0.1602, allocations: 430.8 kB / 0.5027 GB, free: 0.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1602, allocations: 64 / 0.5027 GB, free: 0.793 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006246/0.1608, allocations: 159.7 kB / 0.5029 GB, free: 0.6367 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.2019/0.3626, allocations: 1.538 MB / 0.5044 GB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3642, allocations: 0.5277 MB / 0.5049 GB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3642, allocations: 0 / 0.5049 GB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.3649, allocations: 269.9 kB / 0.5051 GB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.3655, allocations: 67.31 kB / 0.5052 GB, free: 23.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/0.3741, allocations: 5.729 MB / 0.5108 GB, free: 20.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.3744, allocations: 352.2 kB / 0.5111 GB, free: 20.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004748/0.3749, allocations: 191.6 kB / 0.5113 GB, free: 20.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.3752, allocations: 242.8 kB / 0.5116 GB, free: 20.37 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3752, allocations: 1.125 kB / 0.5116 GB, free: 20.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.419, allocations: 14.41 MB / 0.5256 GB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.88, allocations: 7.609 kB / 0.5256 GB, free: 15.11 MB / 366.1 MB " [Timeout remaining time 648] (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: 16.31018918706104] Failed to read output from testmodel.py, exit status != 0: 11.99360253289342 12.003365217 11.876046302 Calling exit ...