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.001767/0.001767, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001558/0.001558, allocations: 211.6 kB / 22.24 MB, free: 5.258 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.789 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.02393/0.02393, allocations: 2.632 MB / 315.1 MB, free: 288 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.003386/0.003386, allocations: 111.8 kB / 438.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09596, allocations: 53.99 MB / 492.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.00539/0.1014, allocations: 2.831 MB / 494.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.1045, allocations: 1.301 MB / 496.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004427/0.1049, allocations: 19.88 kB / 496.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004693/0.1054, allocations: 99.16 kB / 496.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.1069, allocations: 402.2 kB / 496.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004813/0.1074, allocations: 175.8 kB / 496.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.1089, allocations: 0.7797 MB / 497.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005131/0.1094, allocations: 234.1 kB / 497.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.1099, allocations: 330.9 kB / 498.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005436/0.1105, allocations: 322.6 kB / 498.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.1106, allocations: 64 kB / 498.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003943/0.111, allocations: 163.9 kB / 498.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002844/0.1113, allocations: 239.3 kB / 499 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003563/0.1116, allocations: 270.5 kB / 499.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.1129, allocations: 0.8754 MB / 0.4884 GB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1129, allocations: 4 kB / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1129, allocations: 0 / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.1129, allocations: 0 / 0.4884 GB, free: 15.84 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.003297/0.1162, allocations: 1.151 MB / 0.4896 GB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1162, allocations: 8.031 kB / 0.4896 GB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.1164, allocations: 102.7 kB / 0.4897 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.1167, allocations: 88.41 kB / 0.4898 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009787/0.1177, allocations: 0.5025 MB / 0.4902 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.1177, allocations: 41.67 kB / 0.4903 GB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.1178, allocations: 60.08 kB / 0.4903 GB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.1195, allocations: 0.8478 MB / 0.4912 GB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.1195, allocations: 7.938 kB / 0.4912 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.1195, allocations: 31.92 kB / 0.4912 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-05/0.1196, allocations: 37.3 kB / 0.4912 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.1214, allocations: 0.6257 MB / 0.4919 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.1254, allocations: 2.005 MB / 0.4938 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.1272, allocations: 0.5306 MB / 0.4943 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006677/0.1279, allocations: 253.3 kB / 0.4946 GB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.128, allocations: 23.92 kB / 0.4946 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1281, allocations: 42.52 kB / 0.4946 GB, free: 9.285 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.545e-06/0.1281, allocations: 0 / 0.4946 GB, free: 9.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002263/0.1303, allocations: 0.7195 MB / 0.4953 GB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.1304, allocations: 67.33 kB / 0.4954 GB, free: 8.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000918/0.1313, allocations: 0.6123 MB / 0.496 GB, free: 7.863 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.1313, allocations: 37.7 kB / 0.496 GB, free: 7.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.1316, allocations: 328.4 kB / 0.4963 GB, free: 7.492 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.1318, allocations: 142.8 kB / 0.4965 GB, free: 7.352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.132, allocations: 114.2 kB / 0.4966 GB, free: 7.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.1322, allocations: 370.8 kB / 0.4969 GB, free: 6.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006587/0.1329, allocations: 220.8 kB / 0.4972 GB, free: 6.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007677/0.1336, allocations: 342.6 kB / 0.4975 GB, free: 6.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.1349, allocations: 494.3 kB / 0.498 GB, free: 5.727 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1349, allocations: 4 kB / 0.498 GB, free: 5.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001706/0.1366, allocations: 0.6272 MB / 0.4986 GB, free: 5.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.1366, allocations: 8 kB / 0.4986 GB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.1366, allocations: 4 kB / 0.4986 GB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1366, allocations: 4.469 kB / 0.4986 GB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.137, allocations: 95.81 kB / 0.4987 GB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.137, allocations: 4 kB / 0.4987 GB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.1375, allocations: 87.47 kB / 0.4988 GB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.203e-05/0.1375, 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.0004352/0.138, allocations: 267.6 kB / 0.499 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.1382, allocations: 63.56 kB / 0.4991 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.1398, allocations: 0.6242 MB / 0.4997 GB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.1399, allocations: 8 kB / 0.4997 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1399, allocations: 0 / 0.4997 GB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1399, allocations: 3.984 kB / 0.4997 GB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002838/0.1427, allocations: 1.24 MB / 0.5009 GB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1427, allocations: 4 kB / 0.5009 GB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.143, allocations: 63.84 kB / 0.501 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.143, allocations: 3.938 kB / 0.501 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.143, allocations: 23.92 kB / 0.501 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.143, allocations: 4 kB / 0.501 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.143, allocations: 0 / 0.501 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.1454, allocations: 0.9589 MB / 0.502 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003701/0.1458, allocations: 123.5 kB / 0.5021 GB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.1459, allocations: 4 kB / 0.5021 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.1464, allocations: 63.98 kB / 0.5021 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.1467, allocations: 119.8 kB / 0.5023 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/0.1468, allocations: 19.98 kB / 0.5023 GB, free: 1.203 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000705/0.1475, allocations: 430.8 kB / 0.5027 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1475, allocations: 0 / 0.5027 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006488/0.1481, allocations: 151.7 kB / 0.5028 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.2023/0.3504, allocations: 1.546 MB / 0.5043 GB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3521, allocations: 0.5242 MB / 0.5049 GB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3521, allocations: 0 / 0.5049 GB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007703/0.3529, allocations: 280.5 kB / 0.5051 GB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3535, allocations: 61.97 kB / 0.5052 GB, free: 23.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009391/0.3629, allocations: 5.729 MB / 0.5108 GB, free: 20.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.3633, allocations: 351.5 kB / 0.5111 GB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000512/0.3638, allocations: 189.3 kB / 0.5113 GB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.3642, allocations: 246.6 kB / 0.5115 GB, free: 20.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3642, allocations: 0 / 0.5115 GB, free: 20.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04707/0.4112, allocations: 14.26 MB / 0.5255 GB, free: 15.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.98, allocations: 3.938 kB / 0.5255 GB, free: 15.15 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.41807193821296] Failed to read output from testmodel.py, exit status != 0: 12.091985865030438 12.103564518 11.988149026 Calling exit ...