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.00132/0.00132, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001554/0.001554, allocations: 210.8 kB / 22.24 MB, free: 5.262 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.797 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.01434/0.01434, allocations: 2.639 MB / 315.1 MB, free: 280 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="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.003251/0.003251, allocations: 111.8 kB / 438.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.1005, allocations: 53.98 MB / 492.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005235/0.1057, allocations: 2.83 MB / 494.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.1086, allocations: 1.305 MB / 496.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.1089, allocations: 19.88 kB / 496.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003691/0.1093, allocations: 99.16 kB / 496.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.1105, allocations: 402.1 kB / 496.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.1109, allocations: 183.7 kB / 496.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.1121, allocations: 0.7681 MB / 497.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004366/0.1125, allocations: 234.1 kB / 497.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004767/0.113, allocations: 334.9 kB / 498.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004566/0.1135, allocations: 326.6 kB / 498.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1136, allocations: 64 kB / 498.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003781/0.1139, allocations: 163.9 kB / 498.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.1143, allocations: 231.3 kB / 499 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.1146, allocations: 270.5 kB / 499.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001419/0.116, allocations: 0.8832 MB / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.116, allocations: 0 / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.116, allocations: 0 / 0.4884 GB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1161, allocations: 0 / 0.4884 GB, free: 15.84 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.003224/0.1193, allocations: 1.155 MB / 0.4896 GB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1193, allocations: 8.031 kB / 0.4896 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.1195, allocations: 98.7 kB / 0.4897 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002731/0.1197, allocations: 92.41 kB / 0.4897 GB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1208, allocations: 0.5102 MB / 0.4902 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.1208, allocations: 37.69 kB / 0.4903 GB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.982e-05/0.1209, allocations: 56.08 kB / 0.4903 GB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.1226, allocations: 0.8556 MB / 0.4912 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.1227, allocations: 3.938 kB / 0.4912 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.1227, allocations: 20 kB / 0.4912 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.174e-05/0.1228, allocations: 37.3 kB / 0.4912 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.1245, allocations: 0.6296 MB / 0.4918 GB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.1286, allocations: 1.997 MB / 0.4938 GB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.1303, allocations: 0.5383 MB / 0.4943 GB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006748/0.131, allocations: 249.4 kB / 0.4946 GB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.1311, allocations: 23.92 kB / 0.4946 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.1311, allocations: 46.52 kB / 0.4946 GB, free: 9.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.475e-06/0.1311, allocations: 0 / 0.4946 GB, free: 9.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002265/0.1334, allocations: 0.7156 MB / 0.4953 GB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.1334, allocations: 63.34 kB / 0.4954 GB, free: 8.484 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008043/0.1343, allocations: 0.6201 MB / 0.496 GB, free: 7.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.1343, allocations: 33.7 kB / 0.496 GB, free: 7.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.1346, allocations: 332.4 kB / 0.4963 GB, free: 7.488 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.1347, allocations: 146.8 kB / 0.4965 GB, free: 7.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.1349, allocations: 110.2 kB / 0.4966 GB, free: 7.227 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.1351, allocations: 374.8 kB / 0.4969 GB, free: 6.852 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006715/0.1358, allocations: 220.8 kB / 0.4972 GB, free: 6.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008065/0.1366, allocations: 338.6 kB / 0.4975 GB, free: 6.258 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.138, allocations: 498.3 kB / 0.498 GB, free: 5.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.138, allocations: 0 / 0.498 GB, free: 5.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001715/0.1397, allocations: 0.6272 MB / 0.4986 GB, free: 5.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1397, allocations: 4 kB / 0.4986 GB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.1397, allocations: 4 kB / 0.4986 GB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1397, allocations: 8 kB / 0.4986 GB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.1401, allocations: 91.81 kB / 0.4987 GB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.1401, allocations: 8.469 kB / 0.4987 GB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/0.1405, allocations: 83.47 kB / 0.4988 GB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.502e-05/0.1406, allocations: 35.92 kB / 0.4988 GB, free: 4.855 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.0003629/0.141, allocations: 263.7 kB / 0.499 GB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.1411, allocations: 71.5 kB / 0.4991 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.1429, allocations: 0.6203 MB / 0.4997 GB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.1429, allocations: 4 kB / 0.4997 GB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1429, allocations: 0 / 0.4997 GB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1429, allocations: 7.984 kB / 0.4997 GB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.1457, allocations: 1.24 MB / 0.5009 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1457, allocations: 0 / 0.5009 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002649/0.146, allocations: 55.91 kB / 0.501 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/0.146, allocations: 8 kB / 0.501 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.15e-05/0.146, allocations: 19.92 kB / 0.501 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.146, allocations: 0 / 0.501 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1461, allocations: 4 kB / 0.501 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/0.1485, allocations: 0.9589 MB / 0.502 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.1488, allocations: 123.5 kB / 0.5021 GB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.1489, allocations: 8 kB / 0.5021 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.1494, allocations: 55.92 kB / 0.5021 GB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.1497, allocations: 123.8 kB / 0.5023 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.1497, allocations: 20.05 kB / 0.5023 GB, free: 1.203 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005751/0.1503, allocations: 434.8 kB / 0.5027 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1503, allocations: 0 / 0.5027 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005663/0.1509, allocations: 151.7 kB / 0.5028 GB, free: 0.6328 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.2003/0.3511, allocations: 1.54 MB / 0.5043 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3528, allocations: 0.5225 MB / 0.5048 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.3528, allocations: 0.625 kB / 0.5048 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007505/0.3535, allocations: 278.9 kB / 0.5051 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.3541, allocations: 67.17 kB / 0.5052 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.3642, allocations: 5.732 MB / 0.5108 GB, free: 20.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.3647, allocations: 349.4 kB / 0.5111 GB, free: 20.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005889/0.3653, allocations: 191.6 kB / 0.5113 GB, free: 20.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.3656, allocations: 247.7 kB / 0.5115 GB, free: 20.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.402e-06/0.3656, allocations: 0 / 0.5115 GB, free: 20.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05944/0.4251, allocations: 14.26 MB / 0.5255 GB, free: 15.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.94, allocations: 7.812 kB / 0.5255 GB, free: 15.23 MB / 366.1 MB " [Timeout remaining time 648] (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: 16.413321786094457] Failed to read output from testmodel.py, exit status != 0: 12.053932511713356 12.065575539 11.947074061 Calling exit ...