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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008105/0.008104, allocations: 98.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002106/0.002106, allocations: 193.6 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.13/0.13, allocations: 2.586 MB / 293.1 MB, free: 3.332 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 92.23 kB / 404.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.262, allocations: 50.04 MB / 454.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01128/0.2733, allocations: 14.12 MB / 469 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008232/0.2816, allocations: 4.981 MB / 474 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002601/0.2842, allocations: 85.09 kB / 474.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003182/0.2874, allocations: 1.095 MB / 475.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004355/0.2918, allocations: 1.203 MB / 476.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001868/0.2937, allocations: 0.7834 MB / 477.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004521/0.2983, allocations: 3.174 MB / 480.3 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003197/0.3015, allocations: 2.646 MB / 483 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.3043, allocations: 1.376 MB / 484.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.3073, allocations: 1.621 MB / 486 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.3085, allocations: 387.2 kB / 486.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.3106, allocations: 0.5819 MB / 486.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009198/0.3115, allocations: 0.8665 MB / 487.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002727/0.3142, allocations: 1.665 MB / 489.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00695/0.3212, allocations: 5.131 MB / 494.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3212, allocations: 0 / 494.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3213, allocations: 1.312 kB / 494.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001432/0.3214, allocations: 0 / 494.6 MB, free: 12.01 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.009272/0.3307, allocations: 3.57 MB / 498.1 MB, free: 9.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3307, allocations: 9.125 kB / 498.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005269/0.3313, allocations: 370.4 kB / 498.5 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002789/0.3341, allocations: 0.5664 MB / 499.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003618/0.3377, allocations: 1.857 MB / 0.4892 GB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3379, allocations: 197.4 kB / 0.4894 GB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004068/0.3383, allocations: 251.9 kB / 0.4896 GB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005634/0.3439, allocations: 3.289 MB / 0.4928 GB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/0.344, allocations: 0 / 0.4928 GB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002407/0.3443, allocations: 104 kB / 0.4929 GB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/0.3444, allocations: 121 kB / 0.4931 GB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00461/0.349, allocations: 2.714 MB / 0.4957 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01622/0.3653, allocations: 10.87 MB / 0.5063 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.3688, allocations: 3.596 MB / 0.5098 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.37, allocations: 0.8152 MB / 0.5106 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004371/0.3744, allocations: 2.396 MB / 0.513 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.3745, allocations: 47.16 kB / 0.513 GB, free: 14.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.334e-06/0.3745, allocations: 4 kB / 0.513 GB, free: 14 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.0113/0.3858, allocations: 5.354 MB / 0.5182 GB, free: 8.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007545/0.3934, allocations: 5.182 MB / 0.5233 GB, free: 3.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002715/0.3961, allocations: 1.521 MB / 0.5248 GB, free: 1.695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.3962, allocations: 45.7 kB / 0.5248 GB, free: 1.645 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009859/0.3972, allocations: 1.286 MB / 0.5261 GB, free: 356 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.3976, allocations: 424.5 kB / 0.5265 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004728/0.3981, allocations: 279.5 kB / 0.5268 GB, free: 15.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3983, allocations: 305.1 kB / 0.527 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000957/0.3992, allocations: 0.613 MB / 0.5276 GB, free: 14.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.4005, allocations: 1.138 MB / 0.5288 GB, free: 13.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002554/0.4031, allocations: 1.887 MB / 0.5306 GB, free: 11.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.948e-05/0.4031, allocations: 8 kB / 0.5306 GB, free: 11.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003536/0.4067, allocations: 2.025 MB / 0.5326 GB, free: 9.191 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.4067, allocations: 12.88 kB / 0.5326 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.4067, allocations: 23.94 kB / 0.5326 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.407, allocations: 97.67 kB / 0.5327 GB, free: 9.055 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.4085, allocations: 395.3 kB / 0.5331 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.688e-05/0.4086, allocations: 39.86 kB / 0.5331 GB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.41, allocations: 87.89 kB / 0.5332 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.4102, allocations: 67.98 kB / 0.5333 GB, free: 8.477 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.001503/0.4117, allocations: 0.811 MB / 0.5341 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/0.4121, allocations: 174.9 kB / 0.5342 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.4155, allocations: 1.832 MB / 0.536 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4156, allocations: 12 kB / 0.536 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.4156, allocations: 3.984 kB / 0.536 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/0.4156, allocations: 3.984 kB / 0.536 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.4269, allocations: 5.631 MB / 0.5415 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.4269, allocations: 7.984 kB / 0.5415 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007658/0.4277, allocations: 176.1 kB / 0.5417 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.4289, allocations: 401.4 kB / 0.5421 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.839e-05/0.429, allocations: 24 kB / 0.5421 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00772/0.4367, allocations: 5.173 MB / 0.5472 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007527/0.4443, allocations: 5.059 MB / 0.5521 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.4492, allocations: 2.777 MB / 0.5548 GB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.4504, allocations: 399.9 kB / 0.5552 GB, free: 1.488 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005653/0.451, allocations: 32.06 kB / 0.5552 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.4522, allocations: 59.94 kB / 0.5553 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.4524, allocations: 88.75 kB / 0.5554 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.923e-05/0.4525, allocations: 35.98 kB / 0.5554 GB, free: 1.277 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002121/0.4546, allocations: 1.035 MB / 0.5564 GB, free: 252 kB / 430.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4546, allocations: 4 kB / 0.5564 GB, free: 248 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002381/0.457, allocations: 0.504 MB / 0.5569 GB, free: 15.73 MB / 446.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.004884/0.4619, allocations: 3.371 MB / 0.5602 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.4648, allocations: 1.719 MB / 0.5619 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4648, allocations: 4.062 kB / 0.5619 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/0.4667, allocations: 1.117 MB / 0.563 GB, free: 9.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002948/0.4697, allocations: 470.5 kB / 0.5634 GB, free: 8.934 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03043/0.5001, allocations: 16.88 MB / 0.5799 GB, free: 7.262 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/0.5027, allocations: 1.961 MB / 0.5818 GB, free: 5.262 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001429/0.5041, allocations: 382.8 kB / 0.5822 GB, free: 4.883 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.5057, allocations: 0.9562 MB / 0.5831 GB, free: 3.926 MB / 462.1 MB Notification: Performance of SimCode: time 1.663e-06/0.5057, allocations: 0 / 0.5831 GB, free: 3.926 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2869/0.7926, allocations: 46.36 MB / 0.6284 GB, free: 103.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.61/28.4, allocations: 15.17 kB / 0.6284 GB, free: 103.8 MB / 462.1 MB (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)