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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 112.7 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 187.8 kB / 22.22 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 225.6 MB / 251 MB, free: 13.25 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.01387/0.01387, allocations: 2.63 MB / 308.9 MB, free: 6.086 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002614/0.002614, allocations: 103.8 kB / 429.7 MB, free: 21.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09034/0.09296, allocations: 52.81 MB / 482.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004948/0.09791, allocations: 3.047 MB / 485.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.1007, allocations: 1.34 MB / 486.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002996/0.101, allocations: 23.88 kB / 486.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.1014, allocations: 91.17 kB / 487 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.1028, allocations: 457.9 kB / 487.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.1031, allocations: 179.7 kB / 487.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.1043, allocations: 0.768 MB / 488.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.1047, allocations: 241.8 kB / 488.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004528/0.1051, allocations: 338.9 kB / 488.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004177/0.1056, allocations: 346.5 kB / 489.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.272e-05/0.1057, allocations: 64 kB / 489.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003066/0.106, allocations: 143.9 kB / 489.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.1062, allocations: 239.2 kB / 489.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003318/0.1065, allocations: 342 kB / 490 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.1076, allocations: 0.8481 MB / 490.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1076, allocations: 0 / 490.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1076, allocations: 0 / 490.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1076, allocations: 0 / 490.9 MB, free: 7.914 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.002875/0.1105, allocations: 1.199 MB / 492.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1106, allocations: 12.03 kB / 492.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.1107, allocations: 98.69 kB / 492.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.1109, allocations: 92.38 kB / 492.3 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009293/0.1118, allocations: 0.5682 MB / 492.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.1119, allocations: 37.69 kB / 492.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-05/0.112, allocations: 52.12 kB / 492.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1135, allocations: 0.73 MB / 493.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.1135, allocations: 0 / 493.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.1136, allocations: 24 kB / 493.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.807e-05/0.1136, allocations: 37.3 kB / 493.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.1153, allocations: 0.6295 MB / 494.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/0.1194, allocations: 2.192 MB / 496.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.1211, allocations: 0.5339 MB / 497.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006669/0.1218, allocations: 244.7 kB / 497.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002162/0.122, allocations: 182.1 kB / 497.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.1221, allocations: 43.28 kB / 497.5 MB, free: 1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.534e-06/0.1221, allocations: 3.938 kB / 497.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002242/0.1243, allocations: 0.7196 MB / 498.3 MB, free: 276 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.1244, allocations: 63.34 kB / 498.3 MB, free: 200 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008319/0.1252, allocations: 0.6163 MB / 499 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.1252, allocations: 33.7 kB / 499 MB, free: 15.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.1255, allocations: 332.4 kB / 499.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1257, allocations: 142.8 kB / 499.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.1258, allocations: 106.2 kB / 499.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.126, allocations: 378.8 kB / 499.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006578/0.1267, allocations: 220.8 kB / 0.4884 GB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.1275, allocations: 346.5 kB / 0.4887 GB, free: 13.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.1287, allocations: 490.6 kB / 0.4892 GB, free: 13.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1287, allocations: 0 / 0.4892 GB, free: 13.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00169/0.1304, allocations: 0.6272 MB / 0.4898 GB, free: 12.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1305, allocations: 8 kB / 0.4898 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1305, allocations: 4 kB / 0.4898 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.1305, allocations: 4.469 kB / 0.4898 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.1308, allocations: 87.88 kB / 0.4899 GB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.1308, allocations: 11.94 kB / 0.4899 GB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.1313, allocations: 91.45 kB / 0.49 GB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/0.1314, allocations: 27.98 kB / 0.4901 GB, free: 12.57 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.0003742/0.1318, allocations: 263.6 kB / 0.4903 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.1319, allocations: 71.52 kB / 0.4904 GB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.1337, allocations: 0.6202 MB / 0.491 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.1337, allocations: 4 kB / 0.491 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1337, allocations: 0 / 0.491 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.1337, allocations: 7.984 kB / 0.491 GB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.1366, allocations: 1.342 MB / 0.4923 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1366, allocations: 0 / 0.4923 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.1369, allocations: 55.91 kB / 0.4924 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-06/0.1369, allocations: 4 kB / 0.4924 GB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/0.1369, allocations: 15.98 kB / 0.4924 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1369, allocations: 0 / 0.4924 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1369, allocations: 0 / 0.4924 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.1394, allocations: 0.9709 MB / 0.4933 GB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003615/0.1398, allocations: 208.6 kB / 0.4935 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/0.1398, allocations: 8 kB / 0.4935 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.1403, allocations: 55.92 kB / 0.4936 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.1406, allocations: 115.8 kB / 0.4937 GB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.514e-05/0.1406, allocations: 19.98 kB / 0.4937 GB, free: 8.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005877/0.1412, allocations: 434.8 kB / 0.4941 GB, free: 8.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1412, allocations: 0 / 0.4941 GB, free: 8.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.1418, allocations: 151.7 kB / 0.4943 GB, free: 8.148 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.002886/0.1447, allocations: 1.539 MB / 0.4958 GB, free: 6.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.1463, allocations: 0.5284 MB / 0.4963 GB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1463, allocations: 4 kB / 0.4963 GB, free: 6.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.1471, allocations: 271.7 kB / 0.4965 GB, free: 5.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.1476, allocations: 62.3 kB / 0.4966 GB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.1582, allocations: 5.765 MB / 0.5022 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/0.159, allocations: 0.9459 MB / 0.5032 GB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005176/0.1595, allocations: 188.5 kB / 0.5033 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/0.1599, allocations: 251.3 kB / 0.5036 GB, free: 14.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.933e-06/0.1599, allocations: 0 / 0.5036 GB, free: 14.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04529/0.2052, allocations: 13.67 MB / 0.5169 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.389/9.594, allocations: 0 / 0.5169 GB, free: 0.8164 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: 14.136510953074321] Failed to read output from testmodel.py, exit status != 0: 9.874005496036261 9.888890564 9.7779908 Calling exit ...