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.001381/0.001381, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.001515/0.001515, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.487/1.487, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.0136/0.0136, allocations: 2.623 MB / 311.5 MB, free: 1.645 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.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.002985/0.002985, allocations: 103.8 kB / 433 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1044, allocations: 53.95 MB / 486.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01845/0.1228, allocations: 14.83 MB / 0.49 GB, free: 10.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.1343, allocations: 5.257 MB / 0.4951 GB, free: 5.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003161/0.1375, allocations: 111.3 kB / 0.4953 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00385/0.1413, allocations: 1.103 MB / 0.4963 GB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.1459, allocations: 1.177 MB / 0.4975 GB, free: 3.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002555/0.1484, allocations: 0.8181 MB / 0.4983 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005613/0.154, allocations: 3.231 MB / 0.5014 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003132/0.1572, allocations: 1.855 MB / 0.5032 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.1597, allocations: 1.413 MB / 0.5046 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003034/0.1628, allocations: 1.638 MB / 0.5062 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009215/0.1637, allocations: 388 kB / 0.5066 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.1654, allocations: 0.6052 MB / 0.5072 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009816/0.1664, allocations: 0.8725 MB / 0.508 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002534/0.1689, allocations: 1.668 MB / 0.5097 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007289/0.1762, allocations: 5.162 MB / 0.5147 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1762, allocations: 0 / 0.5147 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1762, allocations: 0 / 0.5147 GB, free: 1.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.1764, allocations: 0 / 0.5147 GB, free: 1.496 MB / 382.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.2313/0.4076, allocations: 3.588 MB / 0.5182 GB, free: 36.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.4077, allocations: 9.344 kB / 0.5182 GB, free: 36.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005606/0.4082, allocations: 372 kB / 0.5186 GB, free: 36.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002698/0.4109, allocations: 0.5545 MB / 0.5191 GB, free: 36.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003569/0.4145, allocations: 1.868 MB / 0.5209 GB, free: 35.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.4147, allocations: 194.2 kB / 0.5211 GB, free: 35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005018/0.4152, allocations: 252.6 kB / 0.5214 GB, free: 34.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006345/0.4215, allocations: 3.284 MB / 0.5246 GB, free: 33.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.279e-05/0.4216, allocations: 11.39 kB / 0.5246 GB, free: 33.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/0.4218, allocations: 106.8 kB / 0.5247 GB, free: 33.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.422, allocations: 119.2 kB / 0.5248 GB, free: 33.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005285/0.4272, allocations: 2.721 MB / 0.5275 GB, free: 32.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.4424, allocations: 11.05 MB / 0.5383 GB, free: 24.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003094/0.4455, allocations: 3.838 MB / 0.542 GB, free: 21.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.4466, allocations: 0.7685 MB / 0.5427 GB, free: 20.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003374/0.45, allocations: 2.617 MB / 0.5453 GB, free: 18.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.45, allocations: 43.16 kB / 0.5453 GB, free: 18.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.016e-06/0.45, allocations: 0 / 0.5453 GB, free: 18.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.009469/0.4595, allocations: 5.341 MB / 0.5506 GB, free: 15.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005809/0.4653, allocations: 5.184 MB / 0.5556 GB, free: 9.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/0.4672, allocations: 1.538 MB / 0.5571 GB, free: 8.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.4673, allocations: 45.7 kB / 0.5572 GB, free: 8.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005932/0.4679, allocations: 1.289 MB / 0.5584 GB, free: 6.906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002472/0.4681, allocations: 424.2 kB / 0.5588 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/0.4685, allocations: 275.5 kB / 0.5591 GB, free: 6.223 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.463e-05/0.4685, allocations: 308.7 kB / 0.5594 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007047/0.4692, allocations: 0.613 MB / 0.56 GB, free: 5.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008561/0.4701, allocations: 1.142 MB / 0.5611 GB, free: 3.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.4718, allocations: 1.9 MB / 0.563 GB, free: 1.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.034e-06/0.4718, allocations: 4 kB / 0.563 GB, free: 1.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002631/0.4744, allocations: 2.029 MB / 0.5649 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.4745, allocations: 12 kB / 0.565 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/0.4745, allocations: 16 kB / 0.565 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.4748, allocations: 97.61 kB / 0.5651 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.4762, allocations: 400.5 kB / 0.5654 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.331e-05/0.4762, allocations: 31.92 kB / 0.5655 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.4774, allocations: 83.89 kB / 0.5656 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.4775, allocations: 73.48 kB / 0.5656 GB, free: 15.05 MB / 398.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.001419/0.4789, allocations: 0.8134 MB / 0.5664 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.4792, allocations: 174.9 kB / 0.5666 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003521/0.4828, allocations: 1.828 MB / 0.5684 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.4828, allocations: 17.69 kB / 0.5684 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4828, allocations: 0 / 0.5684 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.4828, allocations: 3.984 kB / 0.5684 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00954/0.4923, allocations: 5.627 MB / 0.5739 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.4923, allocations: 7.938 kB / 0.5739 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007559/0.4931, allocations: 180.1 kB / 0.5741 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.4943, allocations: 393.4 kB / 0.5744 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.576e-05/0.4943, allocations: 31.98 kB / 0.5745 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007659/0.502, allocations: 5.174 MB / 0.5795 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007671/0.5097, allocations: 5.073 MB / 0.5845 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004762/0.5144, allocations: 2.757 MB / 0.5872 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009421/0.5154, allocations: 395.9 kB / 0.5876 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.5156, allocations: 27.94 kB / 0.5876 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/0.5164, allocations: 60 kB / 0.5876 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.5166, allocations: 100.7 kB / 0.5877 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/0.5167, allocations: 32 kB / 0.5878 GB, free: 7.898 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001664/0.5184, allocations: 1.047 MB / 0.5888 GB, free: 6.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5184, allocations: 0 / 0.5888 GB, free: 6.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002143/0.5205, allocations: 0.5117 MB / 0.5893 GB, free: 6.344 MB / 414.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.005156/0.5257, allocations: 3.357 MB / 0.5926 GB, free: 2.926 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.5285, allocations: 1.644 MB / 0.5942 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5285, allocations: 384 / 0.5942 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.5303, allocations: 1.066 MB / 0.5952 GB, free: 144 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/0.5326, allocations: 478.3 kB / 0.5957 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/0.5601, allocations: 16.89 MB / 0.6122 GB, free: 14.01 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/0.562, allocations: 1.961 MB / 0.6141 GB, free: 12.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001315/0.5633, allocations: 382.9 kB / 0.6144 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/0.5647, allocations: 0.9601 MB / 0.6154 GB, free: 10.68 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5647, allocations: 0 / 0.6154 GB, free: 10.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.669, allocations: 46.96 MB / 0.6612 GB, free: 12.09 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.89/27.56, allocations: 0 / 0.6612 GB, free: 12.09 MB / 494.1 MB " [Timeout remaining time 632] (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 & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.SMPM_NominalOperation_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.309919962004642] Failed to read output from testmodel.py, exit status != 0: 27.681862936005928 27.70748754 27.526457482 Calling exit ...