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.001376/0.001376, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001453/0.001453, allocations: 219.5 kB / 23.03 MB, free: 4.945 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.01464/0.01464, allocations: 2.626 MB / 315.8 MB, free: 316 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.003168/0.003168, allocations: 103.8 kB / 438.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1049, allocations: 53.99 MB / 492.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005415/0.1104, allocations: 2.827 MB / 495.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.1131, allocations: 1.29 MB / 497 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003626/0.1135, allocations: 15.88 kB / 497 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000399/0.1139, allocations: 107.1 kB / 497.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.1152, allocations: 406.2 kB / 497.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.1156, allocations: 171.8 kB / 497.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.1169, allocations: 0.7797 MB / 498.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004485/0.1173, allocations: 241.8 kB / 498.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000515/0.1178, allocations: 334.9 kB / 499 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005402/0.1184, allocations: 350.5 kB / 499.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.1185, allocations: 64 kB / 499.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003849/0.1189, allocations: 155.9 kB / 499.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.1192, allocations: 243.2 kB / 499.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003647/0.1196, allocations: 266.5 kB / 0.4884 GB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.1208, allocations: 0.8715 MB / 0.4892 GB, free: 15.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1208, allocations: 0 / 0.4892 GB, free: 15.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1208, allocations: 4 kB / 0.4892 GB, free: 15.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.234e-05/0.1208, allocations: 0 / 0.4892 GB, free: 15.89 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.003538/0.1244, allocations: 1.171 MB / 0.4904 GB, free: 14.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1244, allocations: 8.031 kB / 0.4904 GB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.842e-05/0.1244, allocations: 13.5 kB / 0.4904 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001485/0.1246, allocations: 98.7 kB / 0.4905 GB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003168/0.1249, allocations: 92.41 kB / 0.4906 GB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009128/0.1258, allocations: 0.5025 MB / 0.491 GB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.1259, allocations: 33.69 kB / 0.4911 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.126, allocations: 59.89 kB / 0.4911 GB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001679/0.1276, allocations: 0.8516 MB / 0.492 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.1277, allocations: 0 / 0.492 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.1277, allocations: 31.92 kB / 0.492 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/0.1278, allocations: 41.28 kB / 0.492 GB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.1296, allocations: 0.6296 MB / 0.4927 GB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.1337, allocations: 2.001 MB / 0.4946 GB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.1355, allocations: 0.5307 MB / 0.4951 GB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006774/0.1362, allocations: 253.2 kB / 0.4954 GB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.1363, allocations: 19.98 kB / 0.4954 GB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1363, allocations: 42.52 kB / 0.4954 GB, free: 9.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.1363, allocations: 3.938 kB / 0.4954 GB, free: 9.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002289/0.1386, allocations: 0.7273 MB / 0.4961 GB, free: 8.574 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.1387, allocations: 59.41 kB / 0.4962 GB, free: 8.504 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008711/0.1395, allocations: 0.6124 MB / 0.4968 GB, free: 7.883 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.1396, allocations: 37.7 kB / 0.4968 GB, free: 7.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.1399, allocations: 328.4 kB / 0.4971 GB, free: 7.516 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.14, allocations: 138.8 kB / 0.4973 GB, free: 7.379 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.1402, allocations: 118.1 kB / 0.4974 GB, free: 7.254 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.1404, allocations: 374.8 kB / 0.4977 GB, free: 6.879 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006811/0.1411, allocations: 220.8 kB / 0.498 GB, free: 6.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000778/0.1419, allocations: 346.5 kB / 0.4983 GB, free: 6.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.1432, allocations: 490.4 kB / 0.4988 GB, free: 5.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1432, allocations: 4 kB / 0.4988 GB, free: 5.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001795/0.145, allocations: 0.635 MB / 0.4994 GB, free: 5.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.145, allocations: 4 kB / 0.4994 GB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.145, allocations: 4 kB / 0.4994 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.1451, allocations: 8 kB / 0.4994 GB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.1454, allocations: 79.89 kB / 0.4995 GB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.1454, allocations: 16.39 kB / 0.4995 GB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.146, allocations: 79.58 kB / 0.4996 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.146, allocations: 24 kB / 0.4996 GB, free: 4.891 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.0004081/0.1464, allocations: 271.5 kB / 0.4998 GB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.1467, allocations: 67.56 kB / 0.4999 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.1485, allocations: 0.6127 MB / 0.5005 GB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.1485, allocations: 7.938 kB / 0.5005 GB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1485, allocations: 0 / 0.5005 GB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.1485, allocations: 3.984 kB / 0.5005 GB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.1513, allocations: 1.243 MB / 0.5017 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-06/0.1513, allocations: 0 / 0.5017 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.1516, allocations: 59.89 kB / 0.5018 GB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.1516, allocations: 7.938 kB / 0.5018 GB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.1517, allocations: 19.98 kB / 0.5018 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1517, allocations: 0 / 0.5018 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1517, allocations: 0 / 0.5018 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.1541, allocations: 0.9628 MB / 0.5028 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.1544, allocations: 123.5 kB / 0.5029 GB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.1545, allocations: 12 kB / 0.5029 GB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.155, allocations: 59.92 kB / 0.5029 GB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002888/0.1553, allocations: 119.8 kB / 0.5031 GB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/0.1553, allocations: 12 kB / 0.5031 GB, free: 1.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005802/0.1559, allocations: 442.8 kB / 0.5035 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1559, allocations: 0 / 0.5035 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006024/0.1565, allocations: 155.6 kB / 0.5036 GB, free: 0.6562 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.2189/0.3754, allocations: 1.535 MB / 0.5051 GB, free: 23.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.3771, allocations: 0.5243 MB / 0.5056 GB, free: 23.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3771, allocations: 0.5625 kB / 0.5056 GB, free: 23.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.3778, allocations: 278 kB / 0.5059 GB, free: 23.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006479/0.3785, allocations: 62.58 kB / 0.506 GB, free: 23.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009304/0.3878, allocations: 5.733 MB / 0.5116 GB, free: 20.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.3882, allocations: 354 kB / 0.5119 GB, free: 20.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.3887, allocations: 188.7 kB / 0.5121 GB, free: 20.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.389, allocations: 243.5 kB / 0.5123 GB, free: 20.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.389, allocations: 1.281 kB / 0.5123 GB, free: 20.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.4277, allocations: 13.97 MB / 0.526 GB, free: 15.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.04, allocations: 5.391 kB / 0.526 GB, free: 15.56 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.797705295030028] Failed to read output from testmodel.py, exit status != 0: 13.21401356102433 13.234548812 13.109772551 Calling exit ...