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.001948/0.001948, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00252/0.00252, allocations: 220.5 kB / 22.26 MB, free: 5.125 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.426/1.426, allocations: 230.6 MB / 256 MB, free: 7.977 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.01357/0.01357, allocations: 2.624 MB / 315.1 MB, free: 492 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.002988/0.002988, allocations: 111.8 kB / 438.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.107, allocations: 53.98 MB / 492.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01747/0.1245, allocations: 14.87 MB / 0.4952 GB, free: 9.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.1348, allocations: 5.257 MB / 0.5003 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002812/0.1376, allocations: 115.2 kB / 0.5004 GB, free: 3.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003475/0.1411, allocations: 1.107 MB / 0.5015 GB, free: 2.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004233/0.1453, allocations: 1.196 MB / 0.5027 GB, free: 1.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002395/0.1477, allocations: 0.8371 MB / 0.5035 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2295/0.3772, allocations: 3.226 MB / 0.5066 GB, free: 5.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.3798, allocations: 1.495 MB / 0.5081 GB, free: 5.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002912/0.3827, allocations: 1.411 MB / 0.5095 GB, free: 5.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003632/0.3864, allocations: 1.651 MB / 0.5111 GB, free: 5.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001188/0.3876, allocations: 386.9 kB / 0.5114 GB, free: 5.223 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.3899, allocations: 0.6044 MB / 0.512 GB, free: 5.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009141/0.3908, allocations: 0.8775 MB / 0.5129 GB, free: 5.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002526/0.3934, allocations: 1.667 MB / 0.5145 GB, free: 4.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007644/0.401, allocations: 5.162 MB / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.401, allocations: 0 / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.401, allocations: 1.219 kB / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.4012, allocations: 2.625 kB / 0.5196 GB, free: 2.848 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.01048/0.4117, allocations: 3.519 MB / 0.523 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.4117, allocations: 9.281 kB / 0.523 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000584/0.4123, allocations: 370.7 kB / 0.5234 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002638/0.415, allocations: 0.5578 MB / 0.5239 GB, free: 496 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00452/0.4195, allocations: 1.8 MB / 0.5257 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.4197, allocations: 190.2 kB / 0.5258 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008692/0.4206, allocations: 258.7 kB / 0.5261 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006926/0.4275, allocations: 3.279 MB / 0.5293 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.912e-05/0.4276, allocations: 13.86 kB / 0.5293 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000253/0.4278, allocations: 108.4 kB / 0.5294 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.428, allocations: 121.3 kB / 0.5295 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005013/0.433, allocations: 2.727 MB / 0.5322 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01864/0.4516, allocations: 10.58 MB / 0.5425 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.4546, allocations: 1.429 MB / 0.5439 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.4559, allocations: 0.7648 MB / 0.5447 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00508/0.461, allocations: 2.289 MB / 0.5469 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.461, allocations: 40.41 kB / 0.5469 GB, free: 14.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.946e-06/0.461, allocations: 0 / 0.5469 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.01176/0.4728, allocations: 5.185 MB / 0.552 GB, free: 9.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007929/0.4807, allocations: 5.078 MB / 0.557 GB, free: 4.469 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.4834, allocations: 1.545 MB / 0.5585 GB, free: 2.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002023/0.4836, allocations: 49.7 kB / 0.5585 GB, free: 2.859 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.4847, allocations: 1.288 MB / 0.5598 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004378/0.4851, allocations: 426.7 kB / 0.5602 GB, free: 1.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004489/0.4856, allocations: 275.5 kB / 0.5604 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4857, allocations: 301.1 kB / 0.5607 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.4867, allocations: 0.611 MB / 0.5613 GB, free: 15.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.4881, allocations: 1.149 MB / 0.5625 GB, free: 14.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.4907, allocations: 1.893 MB / 0.5643 GB, free: 12.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.4907, allocations: 8 kB / 0.5643 GB, free: 12.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00374/0.4944, allocations: 2.032 MB / 0.5663 GB, free: 10.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.4945, allocations: 12 kB / 0.5663 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.4945, allocations: 16 kB / 0.5663 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.4948, allocations: 97.67 kB / 0.5664 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.4962, allocations: 399.3 kB / 0.5668 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.814e-05/0.4962, allocations: 36.09 kB / 0.5668 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.4977, allocations: 87.83 kB / 0.5669 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.4978, allocations: 71.98 kB / 0.567 GB, free: 9.91 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.001688/0.4995, allocations: 0.8109 MB / 0.5678 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003836/0.4999, allocations: 174.9 kB / 0.5679 GB, free: 8.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003448/0.5033, allocations: 1.825 MB / 0.5697 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.5033, allocations: 14.44 kB / 0.5697 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5034, allocations: 4 kB / 0.5697 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.5034, allocations: 3.984 kB / 0.5697 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009916/0.5133, allocations: 5.479 MB / 0.5751 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.5133, allocations: 4 kB / 0.5751 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007965/0.5141, allocations: 182.8 kB / 0.5753 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.5153, allocations: 405 kB / 0.5757 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.348e-05/0.5154, allocations: 31.98 kB / 0.5757 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007733/0.5231, allocations: 5.073 MB / 0.5806 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007715/0.5309, allocations: 4.967 MB / 0.5855 GB, free: 6.719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004751/0.5356, allocations: 2.756 MB / 0.5882 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5367, allocations: 322.8 kB / 0.5885 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.537, allocations: 31.92 kB / 0.5885 GB, free: 3.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007828/0.5377, allocations: 56 kB / 0.5886 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.538, allocations: 96.09 kB / 0.5887 GB, free: 3.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.068e-05/0.5381, allocations: 35.94 kB / 0.5887 GB, free: 3.398 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001742/0.5398, allocations: 1.047 MB / 0.5897 GB, free: 2.355 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5398, allocations: 0 / 0.5897 GB, free: 2.355 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002023/0.5418, allocations: 0.5039 MB / 0.5902 GB, free: 1.852 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.004933/0.5468, allocations: 3.362 MB / 0.5935 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.5495, allocations: 1.497 MB / 0.595 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5495, allocations: 0 / 0.595 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.5514, allocations: 0.9842 MB / 0.5959 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.5539, allocations: 490.9 kB / 0.5964 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0281/0.582, allocations: 16.88 MB / 0.6129 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/0.5839, allocations: 1.964 MB / 0.6148 GB, free: 8.023 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001422/0.5853, allocations: 382.9 kB / 0.6152 GB, free: 7.645 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/0.5867, allocations: 0.9679 MB / 0.6161 GB, free: 6.676 MB / 462.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5867, allocations: 0 / 0.6161 GB, free: 6.676 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.134/0.7207, allocations: 48.22 MB / 0.6632 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.39/28.11, allocations: 0 / 0.6632 GB, free: 6.906 MB / 0.4981 GB " [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.91623315600009] Failed to read output from testmodel.py, exit status != 0: 28.253138013998978 28.277749943 27.871896261 Calling exit ...