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.001471/0.001471, allocations: 120.9 kB / 17.16 MB, free: 5.914 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.001571/0.001571, allocations: 208 kB / 20.13 MB, free: 2.969 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.513/1.513, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.01442/0.01442, allocations: 2.627 MB / 312.2 MB, free: 2.676 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="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.003482/0.003482, allocations: 108.2 kB / 433.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09658, allocations: 53.94 MB / 487.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004647/0.1012, allocations: 3.035 MB / 490.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.1039, allocations: 1.377 MB / 492.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005642/0.1045, allocations: 16.41 kB / 492.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005165/0.105, allocations: 98.73 kB / 492.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.1066, allocations: 404 kB / 492.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004919/0.1071, allocations: 175.2 kB / 492.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001339/0.1084, allocations: 0.7852 MB / 493.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005224/0.1089, allocations: 270.5 kB / 493.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/0.1094, allocations: 339 kB / 494.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005118/0.11, allocations: 346.1 kB / 494.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.1102, allocations: 61.88 kB / 494.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004623/0.1106, allocations: 165 kB / 494.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002822/0.1109, allocations: 236 kB / 494.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003991/0.1113, allocations: 337.7 kB / 495.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.1127, allocations: 0.873 MB / 496.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1127, allocations: 4 kB / 496.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1127, allocations: 0 / 496.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.1128, allocations: 0 / 496.1 MB, free: 8.961 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.003493/0.1163, allocations: 1.234 MB / 497.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1163, allocations: 12.03 kB / 497.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.45e-05/0.1163, allocations: 13.5 kB / 497.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.1165, allocations: 94.7 kB / 497.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.1168, allocations: 92.41 kB / 497.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008005/0.1176, allocations: 0.572 MB / 498.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.1176, allocations: 37.69 kB / 498.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.365e-05/0.1177, allocations: 51.94 kB / 498.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.1192, allocations: 0.7301 MB / 498.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.1192, allocations: 0 / 498.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.1193, allocations: 20 kB / 499 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.493e-05/0.1193, allocations: 37.3 kB / 499 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.1209, allocations: 0.6257 MB / 499.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.1248, allocations: 2.192 MB / 0.4901 GB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.1265, allocations: 0.5339 MB / 0.4906 GB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006437/0.1271, allocations: 249.3 kB / 0.4908 GB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.1273, allocations: 178.2 kB / 0.491 GB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.1273, allocations: 42.5 kB / 0.491 GB, free: 2.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.815e-06/0.1273, allocations: 0 / 0.491 GB, free: 2.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002195/0.1295, allocations: 0.7195 MB / 0.4917 GB, free: 1.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.1295, allocations: 63.52 kB / 0.4918 GB, free: 1.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000752/0.1303, allocations: 0.6161 MB / 0.4924 GB, free: 0.5859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.851e-05/0.1303, allocations: 29.7 kB / 0.4924 GB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1305, allocations: 336.5 kB / 0.4927 GB, free: 224 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1307, allocations: 138.8 kB / 0.4929 GB, free: 84 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.1309, allocations: 118.1 kB / 0.493 GB, free: 15.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.1311, allocations: 370.8 kB / 0.4933 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007654/0.1319, allocations: 228.9 kB / 0.4936 GB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008472/0.1327, allocations: 335.2 kB / 0.4939 GB, free: 14.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.1342, allocations: 498.4 kB / 0.4944 GB, free: 14.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.1342, allocations: 4 kB / 0.4944 GB, free: 14.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00195/0.1361, allocations: 0.6274 MB / 0.495 GB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.1362, allocations: 8 kB / 0.495 GB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.1362, allocations: 4 kB / 0.495 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.1362, allocations: 4.469 kB / 0.495 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.1366, allocations: 95.83 kB / 0.4951 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.1366, allocations: 7.984 kB / 0.4951 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006011/0.1372, allocations: 75.58 kB / 0.4952 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.922e-05/0.1373, allocations: 27.98 kB / 0.4952 GB, free: 13.6 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.0004899/0.1378, allocations: 269.5 kB / 0.4954 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002567/0.138, allocations: 67.56 kB / 0.4955 GB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.14, allocations: 0.6163 MB / 0.4961 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.14, allocations: 4 kB / 0.4961 GB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.14, allocations: 3.938 kB / 0.4961 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.14, allocations: 7.984 kB / 0.4961 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.1432, allocations: 1.334 MB / 0.4974 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1432, allocations: 0 / 0.4974 GB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.1435, allocations: 59.91 kB / 0.4975 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.1435, allocations: 0 / 0.4975 GB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.604e-05/0.1436, allocations: 15.98 kB / 0.4975 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/0.1436, allocations: 4 kB / 0.4975 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1436, allocations: 0 / 0.4975 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.1462, allocations: 0.9628 MB / 0.4984 GB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003901/0.1466, allocations: 204.6 kB / 0.4986 GB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.1468, allocations: 11.94 kB / 0.4986 GB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005343/0.1473, allocations: 55.92 kB / 0.4987 GB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.1476, allocations: 119.8 kB / 0.4988 GB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.223e-05/0.1476, allocations: 20 kB / 0.4988 GB, free: 9.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006802/0.1483, allocations: 434.8 kB / 0.4992 GB, free: 9.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1483, allocations: 0 / 0.4992 GB, free: 9.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006734/0.149, allocations: 155.7 kB / 0.4994 GB, free: 9.176 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.003148/0.1521, allocations: 1.547 MB / 0.5009 GB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.1538, allocations: 0.5225 MB / 0.5014 GB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.1539, allocations: 0 / 0.5014 GB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008166/0.1547, allocations: 271.6 kB / 0.5017 GB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000648/0.1553, allocations: 60.12 kB / 0.5017 GB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.1664, allocations: 5.738 MB / 0.5073 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007243/0.1671, allocations: 0.9497 MB / 0.5083 GB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005506/0.1677, allocations: 192.5 kB / 0.5084 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.1681, allocations: 243.3 kB / 0.5087 GB, free: 15.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.1681, allocations: 8 kB / 0.5087 GB, free: 15.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.041/0.2091, allocations: 13.36 MB / 0.5217 GB, free: 2.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.699/9.909, allocations: 9.469 kB / 0.5217 GB, free: 2.145 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 & /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: 15.961970122996718] Failed to read output from testmodel.py, exit status != 0: 10.043770665011834 10.057993923 9.942075582 Calling exit ...