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.001577/0.001577, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001841/0.001841, allocations: 215.2 kB / 22.25 MB, free: 5.258 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.619/1.619, allocations: 230.6 MB / 256 MB, free: 7.793 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.01385/0.01385, allocations: 2.624 MB / 315.1 MB, free: 284 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.003019/0.003019, allocations: 107.8 kB / 438.1 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1273, allocations: 53.99 MB / 492.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.02068/0.148, allocations: 12.9 MB / 0.4932 GB, free: 10.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.162, allocations: 4.938 MB / 0.498 GB, free: 5.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003811/0.1659, allocations: 123.2 kB / 0.4981 GB, free: 5.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003944/0.1698, allocations: 1.021 MB / 0.4991 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005266/0.1751, allocations: 1.173 MB / 0.5003 GB, free: 3.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002781/0.1778, allocations: 0.7944 MB / 0.501 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3316/0.5094, allocations: 3.238 MB / 0.5042 GB, free: 5.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003561/0.513, allocations: 1.492 MB / 0.5056 GB, free: 5.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00393/0.5169, allocations: 1.416 MB / 0.507 GB, free: 5.469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004556/0.5215, allocations: 1.648 MB / 0.5086 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.523, allocations: 391.8 kB / 0.509 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002838/0.5258, allocations: 0.5888 MB / 0.5096 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001287/0.5271, allocations: 0.8719 MB / 0.5104 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00382/0.5309, allocations: 1.32 MB / 0.5117 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009674/0.5406, allocations: 5.19 MB / 0.5168 GB, free: 4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.5406, allocations: 3.312 kB / 0.5168 GB, free: 4 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5406, allocations: 0 / 0.5168 GB, free: 4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002277/0.5408, allocations: 0.5625 kB / 0.5168 GB, free: 4 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.01301/0.5539, allocations: 3.507 MB / 0.5202 GB, free: 2.062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.5539, allocations: 10.94 kB / 0.5202 GB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008475/0.5548, allocations: 370.4 kB / 0.5206 GB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003008/0.5578, allocations: 0.5575 MB / 0.5211 GB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004729/0.5625, allocations: 1.809 MB / 0.5229 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.5627, allocations: 194.5 kB / 0.5231 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007298/0.5634, allocations: 250.2 kB / 0.5233 GB, free: 492 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009093/0.5725, allocations: 3.487 MB / 0.5267 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.22e-05/0.5726, allocations: 2.062 kB / 0.5267 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003091/0.5729, allocations: 102.2 kB / 0.5268 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002045/0.5731, allocations: 122.7 kB / 0.5269 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005466/0.5786, allocations: 2.711 MB / 0.5296 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/0.6035, allocations: 9.696 MB / 0.5391 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003776/0.6073, allocations: 1.403 MB / 0.5404 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/0.6091, allocations: 0.7737 MB / 0.5412 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00631/0.6154, allocations: 2.05 MB / 0.5432 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.6154, allocations: 39.22 kB / 0.5432 GB, free: 3.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 4.949e-06/0.6154, allocations: 0 / 0.5432 GB, free: 3.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01433/0.6298, allocations: 5.2 MB / 0.5483 GB, free: 14.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008763/0.6385, allocations: 4.995 MB / 0.5532 GB, free: 9.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/0.6424, allocations: 1.568 MB / 0.5547 GB, free: 7.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002592/0.6427, allocations: 45.7 kB / 0.5548 GB, free: 7.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.644, allocations: 1.281 MB / 0.556 GB, free: 6.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006951/0.6447, allocations: 428.5 kB / 0.5564 GB, free: 5.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007104/0.6454, allocations: 279.4 kB / 0.5567 GB, free: 5.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.6456, allocations: 301.1 kB / 0.557 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.6468, allocations: 0.6169 MB / 0.5576 GB, free: 4.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.6487, allocations: 1.163 MB / 0.5587 GB, free: 3.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003066/0.6517, allocations: 1.895 MB / 0.5606 GB, free: 1.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.803e-05/0.6518, allocations: 4 kB / 0.5606 GB, free: 1.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005074/0.6568, allocations: 2.039 MB / 0.5626 GB, free: 15.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.977e-05/0.6569, allocations: 15.94 kB / 0.5626 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.753e-05/0.657, allocations: 19.98 kB / 0.5626 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004007/0.6574, allocations: 89.67 kB / 0.5627 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/0.6591, allocations: 395.6 kB / 0.5631 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.932e-05/0.6592, allocations: 40.05 kB / 0.5631 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/0.6612, allocations: 87.89 kB / 0.5632 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.6614, allocations: 72.61 kB / 0.5632 GB, free: 14.63 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.002364/0.6638, allocations: 0.8145 MB / 0.564 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008193/0.6646, allocations: 178.9 kB / 0.5642 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00424/0.6689, allocations: 1.819 MB / 0.566 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.6689, allocations: 12 kB / 0.566 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.6689, allocations: 7.984 kB / 0.566 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.6689, allocations: 4.922 kB / 0.566 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.6825, allocations: 5.208 MB / 0.5711 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.6825, allocations: 4 kB / 0.5711 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008266/0.6833, allocations: 178.6 kB / 0.5713 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/0.6846, allocations: 402.1 kB / 0.5717 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.6847, allocations: 24 kB / 0.5717 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008418/0.6932, allocations: 4.99 MB / 0.5765 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008634/0.7018, allocations: 4.889 MB / 0.5813 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005535/0.7073, allocations: 2.758 MB / 0.584 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/0.7089, allocations: 322.8 kB / 0.5843 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006933/0.7096, allocations: 35.55 kB / 0.5844 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.7109, allocations: 55.94 kB / 0.5844 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003005/0.7112, allocations: 99.38 kB / 0.5845 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-05/0.7113, allocations: 36.06 kB / 0.5845 GB, free: 8.555 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002912/0.7142, allocations: 1.043 MB / 0.5856 GB, free: 7.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7142, allocations: 0 / 0.5856 GB, free: 7.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003484/0.7177, allocations: 0.5117 MB / 0.5861 GB, free: 7.004 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.006005/0.7237, allocations: 3.36 MB / 0.5893 GB, free: 3.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.7268, allocations: 1.495 MB / 0.5908 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7268, allocations: 0 / 0.5908 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.7289, allocations: 0.989 MB / 0.5918 GB, free: 1.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003685/0.7325, allocations: 476 kB / 0.5922 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04044/0.773, allocations: 16.88 MB / 0.6087 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00298/0.776, allocations: 1.392 MB / 0.6101 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001777/0.7778, allocations: 378.9 kB / 0.6104 GB, free: 13.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001916/0.7797, allocations: 0.9679 MB / 0.6114 GB, free: 12.41 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.7797, allocations: 0 / 0.6114 GB, free: 12.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.121/0.9007, allocations: 49.74 MB / 0.6599 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/16.08, allocations: 6.969 kB / 0.66 GB, free: 11.19 MB / 0.4981 GB " [Timeout remaining time 644] (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 sys.exit(0), Time elapsed: 19.047219989006408] Failed to read output from testmodel.py, exit status != 0: 16.234138524974696 16.261069784 15.715370377 Calling exit ...