Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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.001609/0.001609, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002104/0.002104, allocations: 217.5 kB / 22.25 MB, free: 4.855 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.809 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.01413/0.01413, allocations: 2.629 MB / 315.1 MB, free: 288 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.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",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.003343/0.003343, allocations: 108.7 kB / 438.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.1008, allocations: 53.99 MB / 492.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01775/0.1186, allocations: 12.9 MB / 0.4932 GB, free: 10.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.1296, allocations: 4.946 MB / 0.498 GB, free: 6.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.1322, allocations: 115.2 kB / 0.4981 GB, free: 5.898 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003287/0.1355, allocations: 1.029 MB / 0.4991 GB, free: 4.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004217/0.1397, allocations: 1.169 MB / 0.5003 GB, free: 3.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002117/0.1418, allocations: 0.7856 MB / 0.501 GB, free: 2.906 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2186/0.3604, allocations: 3.241 MB / 0.5042 GB, free: 5.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002462/0.3629, allocations: 1.431 MB / 0.5056 GB, free: 5.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002105/0.365, allocations: 1.416 MB / 0.507 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003402/0.3684, allocations: 1.523 MB / 0.5085 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001183/0.3696, allocations: 387 kB / 0.5088 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.3714, allocations: 0.5834 MB / 0.5094 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008924/0.3722, allocations: 0.8667 MB / 0.5102 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002295/0.3745, allocations: 1.324 MB / 0.5115 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00651/0.3811, allocations: 5.191 MB / 0.5166 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3811, allocations: 0 / 0.5166 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3811, allocations: 0 / 0.5166 GB, free: 4.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001419/0.3812, allocations: 0.9688 kB / 0.5166 GB, free: 4.137 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: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.01049/0.3917, allocations: 3.51 MB / 0.52 GB, free: 2.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3917, allocations: 9.812 kB / 0.52 GB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006036/0.3923, allocations: 368.5 kB / 0.5204 GB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002734/0.3951, allocations: 0.5598 MB / 0.5209 GB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/0.3991, allocations: 1.803 MB / 0.5227 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.3993, allocations: 195.1 kB / 0.5229 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006687/0.3999, allocations: 250.5 kB / 0.5231 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007512/0.4074, allocations: 3.443 MB / 0.5265 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.212e-05/0.4075, allocations: 2.625 kB / 0.5265 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002856/0.4078, allocations: 110 kB / 0.5266 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.4079, allocations: 117.5 kB / 0.5267 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005059/0.413, allocations: 2.717 MB / 0.5294 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.4308, allocations: 9.684 MB / 0.5388 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002822/0.4336, allocations: 1.411 MB / 0.5402 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/0.4349, allocations: 0.7652 MB / 0.5409 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004759/0.4397, allocations: 2.048 MB / 0.5429 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.4397, allocations: 39.22 kB / 0.543 GB, free: 3.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.396e-06/0.4397, allocations: 2.062 kB / 0.543 GB, free: 3.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01205/0.4518, allocations: 5.199 MB / 0.5481 GB, free: 14.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007914/0.4597, allocations: 4.999 MB / 0.5529 GB, free: 9.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002599/0.4623, allocations: 1.568 MB / 0.5545 GB, free: 7.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001691/0.4624, allocations: 45.7 kB / 0.5545 GB, free: 7.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.4635, allocations: 1.282 MB / 0.5558 GB, free: 6.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004223/0.4639, allocations: 430.8 kB / 0.5562 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004394/0.4643, allocations: 279.4 kB / 0.5564 GB, free: 5.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4644, allocations: 305.1 kB / 0.5567 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009888/0.4654, allocations: 0.613 MB / 0.5573 GB, free: 4.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4669, allocations: 1.17 MB / 0.5585 GB, free: 3.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/0.4695, allocations: 1.893 MB / 0.5603 GB, free: 1.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.4695, allocations: 4 kB / 0.5603 GB, free: 1.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003503/0.473, allocations: 2.031 MB / 0.5623 GB, free: 15.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.473, allocations: 15.94 kB / 0.5623 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/0.473, allocations: 16.78 kB / 0.5623 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002852/0.4733, allocations: 97.86 kB / 0.5624 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.4748, allocations: 395.6 kB / 0.5628 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.282e-05/0.4748, allocations: 33.98 kB / 0.5628 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4762, allocations: 87.89 kB / 0.5629 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.4763, allocations: 71.98 kB / 0.563 GB, free: 14.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001534/0.4778, allocations: 0.8118 MB / 0.5638 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003778/0.4782, allocations: 182.6 kB / 0.564 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.4818, allocations: 1.82 MB / 0.5657 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.4818, allocations: 12 kB / 0.5658 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4818, allocations: 0 / 0.5658 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.4818, allocations: 7.984 kB / 0.5658 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.4918, allocations: 5.209 MB / 0.5708 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4919, allocations: 5.5 kB / 0.5709 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007927/0.4926, allocations: 182.2 kB / 0.571 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.4938, allocations: 397.9 kB / 0.5714 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.054e-05/0.4939, allocations: 28 kB / 0.5714 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007511/0.5014, allocations: 4.991 MB / 0.5763 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007433/0.5089, allocations: 4.889 MB / 0.5811 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/0.5135, allocations: 2.762 MB / 0.5838 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009805/0.5145, allocations: 322.8 kB / 0.5841 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.5147, allocations: 28.06 kB / 0.5841 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008279/0.5156, allocations: 59.94 kB / 0.5842 GB, free: 8.707 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.5158, allocations: 99.31 kB / 0.5843 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/0.5159, allocations: 32 kB / 0.5843 GB, free: 8.582 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001711/0.5176, allocations: 1.047 MB / 0.5853 GB, free: 7.539 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5176, allocations: 0 / 0.5853 GB, free: 7.539 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00195/0.5195, allocations: 0.5078 MB / 0.5858 GB, free: 7.031 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005151/0.5247, allocations: 3.359 MB / 0.5891 GB, free: 3.641 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.5274, allocations: 1.499 MB / 0.5906 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.435e-06/0.5274, allocations: 0 / 0.5906 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.5292, allocations: 0.9845 MB / 0.5915 GB, free: 1.223 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/0.5315, allocations: 483.4 kB / 0.592 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/0.5597, allocations: 16.87 MB / 0.6085 GB, free: 15.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/0.5614, allocations: 1.406 MB / 0.6098 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001331/0.5628, allocations: 382.9 kB / 0.6102 GB, free: 13.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.5642, allocations: 0.9601 MB / 0.6111 GB, free: 12.43 MB / 462.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5642, allocations: 0 / 0.6111 GB, free: 12.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.6643, allocations: 49.14 MB / 0.6591 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.29, allocations: 13.92 kB / 0.6591 GB, free: 11.82 MB / 0.4981 GB " [Timeout remaining time 645] (rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.00440640002489] Failed to read output from testmodel.py, exit status != 0: 15.43579287128523 15.45477085 15.069961532 Calling exit ...