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.001342/0.001342, allocations: 107 kB / 16.45 MB, free: 6.453 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.001534/0.001534, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.429/1.429, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.01407/0.01407, allocations: 2.619 MB / 311.5 MB, free: 1.621 MB / 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.002975/0.002975, allocations: 115.8 kB / 433 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09624, allocations: 53.95 MB / 487 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004532/0.1008, allocations: 3.024 MB / 490 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.1033, allocations: 1.379 MB / 491.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.1036, allocations: 15.88 kB / 491.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.1039, allocations: 99.16 kB / 491.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1051, allocations: 402.2 kB / 491.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003746/0.1055, allocations: 179.7 kB / 492 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.1066, allocations: 0.7759 MB / 492.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004318/0.107, allocations: 277.4 kB / 493.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.1075, allocations: 331 kB / 493.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000408/0.1079, allocations: 346.5 kB / 493.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.554e-05/0.108, allocations: 64 kB / 493.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003444/0.1083, allocations: 167.9 kB / 494 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.1086, allocations: 239.2 kB / 494.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003124/0.1089, allocations: 330.1 kB / 494.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.11, allocations: 0.8753 MB / 495.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.11, allocations: 0 / 495.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.11, allocations: 0 / 495.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.11, allocations: 0 / 495.4 MB, free: 1.297 MB / 350.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.003052/0.113, allocations: 1.23 MB / 496.6 MB, free: 16 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1131, allocations: 12.03 kB / 496.6 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001522/0.1132, allocations: 106.7 kB / 496.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.1135, allocations: 88.41 kB / 496.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009074/0.1144, allocations: 0.5643 MB / 497.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.1145, allocations: 41.67 kB / 497.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.206e-05/0.1145, allocations: 60.02 kB / 497.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.116, allocations: 0.7222 MB / 498.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.116, allocations: 0 / 498.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.1161, allocations: 24 kB / 498.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.693e-05/0.1162, allocations: 37.3 kB / 498.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.1178, allocations: 0.6257 MB / 498.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003856/0.1216, allocations: 2.196 MB / 0.4894 GB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.1234, allocations: 0.5339 MB / 0.4899 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000676/0.1241, allocations: 241.4 kB / 0.4901 GB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002251/0.1243, allocations: 178.2 kB / 0.4903 GB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.1243, allocations: 50.44 kB / 0.4903 GB, free: 10.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.004e-06/0.1243, allocations: 0 / 0.4903 GB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002203/0.1265, allocations: 0.7233 MB / 0.491 GB, free: 9.621 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1266, allocations: 63.41 kB / 0.4911 GB, free: 9.547 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007502/0.1273, allocations: 0.6123 MB / 0.4917 GB, free: 8.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1274, allocations: 29.7 kB / 0.4917 GB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002677/0.1276, allocations: 332.5 kB / 0.492 GB, free: 8.562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.1278, allocations: 138.8 kB / 0.4922 GB, free: 8.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.128, allocations: 114.2 kB / 0.4923 GB, free: 8.309 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1281, allocations: 370.8 kB / 0.4926 GB, free: 7.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006444/0.1288, allocations: 221 kB / 0.4928 GB, free: 7.723 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007471/0.1295, allocations: 343.2 kB / 0.4932 GB, free: 7.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1308, allocations: 498.3 kB / 0.4936 GB, free: 6.801 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1308, allocations: 0 / 0.4936 GB, free: 6.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001687/0.1325, allocations: 0.6275 MB / 0.4943 GB, free: 6.168 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.1325, allocations: 8 kB / 0.4943 GB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.1325, allocations: 4 kB / 0.4943 GB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.1326, allocations: 4 kB / 0.4943 GB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.1329, allocations: 88.3 kB / 0.4944 GB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.1329, allocations: 15.92 kB / 0.4944 GB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.1334, allocations: 87.5 kB / 0.4945 GB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.1334, allocations: 23.98 kB / 0.4945 GB, free: 5.941 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.0003486/0.1338, allocations: 259.9 kB / 0.4947 GB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.1339, allocations: 71.5 kB / 0.4948 GB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.1357, allocations: 0.6202 MB / 0.4954 GB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.1357, allocations: 4 kB / 0.4954 GB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1357, allocations: 4 kB / 0.4954 GB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.1357, allocations: 7.922 kB / 0.4954 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.1384, allocations: 1.349 MB / 0.4967 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1384, allocations: 0 / 0.4967 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.1387, allocations: 55.91 kB / 0.4968 GB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1387, allocations: 4 kB / 0.4968 GB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.1387, allocations: 15.98 kB / 0.4968 GB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1387, allocations: 3.938 kB / 0.4968 GB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1387, allocations: 4 kB / 0.4968 GB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.1411, allocations: 0.951 MB / 0.4977 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.1414, allocations: 204.6 kB / 0.4979 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.1414, allocations: 8 kB / 0.4979 GB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/0.1419, allocations: 55.92 kB / 0.498 GB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/0.1422, allocations: 115.8 kB / 0.4981 GB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.1422, allocations: 23.98 kB / 0.4981 GB, free: 2.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005566/0.1428, allocations: 430.8 kB / 0.4985 GB, free: 1.672 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1428, allocations: 3.938 kB / 0.4985 GB, free: 1.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.1433, allocations: 151.7 kB / 0.4987 GB, free: 1.52 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.002812/0.1461, allocations: 1.547 MB / 0.5002 GB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.1477, allocations: 0.5266 MB / 0.5007 GB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1477, allocations: 0 / 0.5007 GB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007217/0.1484, allocations: 268.1 kB / 0.501 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.1489, allocations: 62.3 kB / 0.501 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009419/0.1583, allocations: 5.734 MB / 0.5066 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005809/0.1589, allocations: 0.9419 MB / 0.5075 GB, free: 8.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000455/0.1593, allocations: 188.5 kB / 0.5077 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.1597, allocations: 247.3 kB / 0.508 GB, free: 7.785 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1597, allocations: 0 / 0.508 GB, free: 7.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2737/0.4334, allocations: 13.35 MB / 0.521 GB, free: 39.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9/9.433, allocations: 10.38 kB / 0.521 GB, free: 39.23 MB / 382.1 MB " [Timeout remaining time 650] (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: 13.539185469999211] Failed to read output from testmodel.py, exit status != 0: 9.508682235013111 9.528910041 9.415397211 Calling exit ...