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.001753/0.001753, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002177/0.002177, allocations: 215.1 kB / 23.04 MB, free: 5.066 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.519/1.519, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.01414/0.01414, allocations: 2.63 MB / 315.9 MB, free: 484 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="cs",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.003081/0.003081, allocations: 112.3 kB / 439 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1044, allocations: 53.98 MB / 493 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004766/0.1091, allocations: 3.048 MB / 496 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003119/0.1122, allocations: 1.391 MB / 497.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000418/0.1127, allocations: 19.88 kB / 497.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003954/0.1131, allocations: 99.16 kB / 497.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00122/0.1143, allocations: 422.1 kB / 497.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.1146, allocations: 167.8 kB / 498.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.1158, allocations: 0.7758 MB / 498.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.1162, allocations: 245.8 kB / 499.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004291/0.1167, allocations: 334.9 kB / 499.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.1171, allocations: 346.5 kB / 499.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.762e-05/0.1172, allocations: 64 kB / 499.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003274/0.1175, allocations: 167.9 kB / 500 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002433/0.1178, allocations: 235.3 kB / 0.4885 GB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.1181, allocations: 338 kB / 0.4888 GB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.1192, allocations: 0.8715 MB / 0.4897 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1192, allocations: 4 kB / 0.4897 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1192, allocations: 4 kB / 0.4897 GB, free: 15.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1192, allocations: 0 / 0.4897 GB, free: 15.67 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.003136/0.1223, allocations: 1.155 MB / 0.4908 GB, free: 14.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1223, allocations: 8.031 kB / 0.4908 GB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.911e-05/0.1224, allocations: 17.5 kB / 0.4908 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.1225, allocations: 106.5 kB / 0.4909 GB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.1228, allocations: 88.41 kB / 0.491 GB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008803/0.1237, allocations: 0.4948 MB / 0.4915 GB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.1237, allocations: 41.67 kB / 0.4915 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.1238, allocations: 59.89 kB / 0.4916 GB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1253, allocations: 0.7261 MB / 0.4923 GB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.1253, allocations: 0 / 0.4923 GB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.97e-05/0.1254, allocations: 20 kB / 0.4923 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.359e-05/0.1255, allocations: 45.28 kB / 0.4924 GB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.1272, allocations: 0.6295 MB / 0.493 GB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.1316, allocations: 2.141 MB / 0.4951 GB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.1334, allocations: 0.5377 MB / 0.4956 GB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007095/0.1341, allocations: 253.3 kB / 0.4958 GB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.1343, allocations: 24.08 kB / 0.4959 GB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.1343, allocations: 50.45 kB / 0.4959 GB, free: 9.109 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.314e-06/0.1343, allocations: 0 / 0.4959 GB, free: 9.109 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002403/0.1367, allocations: 0.7272 MB / 0.4966 GB, free: 8.375 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.1368, allocations: 55.41 kB / 0.4967 GB, free: 8.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008274/0.1376, allocations: 0.6124 MB / 0.4973 GB, free: 7.688 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/0.1376, allocations: 37.69 kB / 0.4973 GB, free: 7.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000272/0.1379, allocations: 320.5 kB / 0.4976 GB, free: 7.328 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1381, allocations: 146.8 kB / 0.4978 GB, free: 7.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.1383, allocations: 110.1 kB / 0.4979 GB, free: 7.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.1385, allocations: 382.8 kB / 0.4982 GB, free: 6.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006864/0.1391, allocations: 224.8 kB / 0.4984 GB, free: 6.465 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008052/0.1399, allocations: 342.5 kB / 0.4988 GB, free: 6.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.1413, allocations: 494.4 kB / 0.4992 GB, free: 5.547 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1413, allocations: 0 / 0.4992 GB, free: 5.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001812/0.1431, allocations: 0.6238 MB / 0.4999 GB, free: 4.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1431, allocations: 12.03 kB / 0.4999 GB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.1431, allocations: 4 kB / 0.4999 GB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.944e-05/0.1432, allocations: 7.938 kB / 0.4999 GB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.1435, allocations: 87.88 kB / 0.5 GB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.1436, allocations: 11.92 kB / 0.5 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.1441, allocations: 79.58 kB / 0.5 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.1442, allocations: 27.98 kB / 0.5001 GB, free: 4.691 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.0004308/0.1446, allocations: 275.5 kB / 0.5003 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.1448, allocations: 63.58 kB / 0.5004 GB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.1466, allocations: 0.6087 MB / 0.501 GB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.1466, allocations: 8 kB / 0.501 GB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1466, allocations: 4 kB / 0.501 GB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1466, allocations: 3.984 kB / 0.501 GB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.1495, allocations: 1.321 MB / 0.5023 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1495, allocations: 0 / 0.5023 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.1498, allocations: 59.91 kB / 0.5024 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1498, allocations: 0 / 0.5024 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.783e-05/0.1498, allocations: 15.98 kB / 0.5024 GB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.1498, allocations: 7.938 kB / 0.5024 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1498, allocations: 0 / 0.5024 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.1523, allocations: 0.9628 MB / 0.5033 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.1526, allocations: 119.5 kB / 0.5034 GB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.1527, allocations: 8 kB / 0.5034 GB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.1532, allocations: 59.92 kB / 0.5035 GB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/0.1534, allocations: 123.7 kB / 0.5036 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/0.1535, allocations: 15.98 kB / 0.5036 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005603/0.154, allocations: 442.8 kB / 0.504 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.154, allocations: 0 / 0.504 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005646/0.1546, allocations: 155.6 kB / 0.5042 GB, free: 392 kB / 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.1974/0.352, allocations: 1.533 MB / 0.5057 GB, free: 23.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.3536, allocations: 0.519 MB / 0.5062 GB, free: 23.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.3536, allocations: 1.094 kB / 0.5062 GB, free: 23.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.3543, allocations: 276.8 kB / 0.5065 GB, free: 23.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.3549, allocations: 63.89 kB / 0.5065 GB, free: 23.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/0.3644, allocations: 5.745 MB / 0.5121 GB, free: 20.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.3648, allocations: 0.9409 MB / 0.5131 GB, free: 19.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005389/0.3654, allocations: 193.4 kB / 0.5132 GB, free: 19.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.3657, allocations: 249.3 kB / 0.5135 GB, free: 19.67 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3657, allocations: 0.5625 kB / 0.5135 GB, free: 19.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0417/0.4074, allocations: 13.83 MB / 0.527 GB, free: 14.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.01, allocations: 7.312 kB / 0.527 GB, free: 14.88 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --stepSize=1.00001e-05 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.77702620800119] Failed to read output from testmodel.py, exit status != 0: 13.188356138998643 13.210629412 13.087460145 Calling exit ...