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.001161/0.001161, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 196 kB / 16.54 MB, free: 6.672 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1125/0.1125, allocations: 2.583 MB / 293 MB, free: 3.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 99.84 kB / 354.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09794, allocations: 50.03 MB / 404.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.016/0.114, allocations: 14.13 MB / 418.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.166/0.28, allocations: 4.968 MB / 423.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.2824, allocations: 88.94 kB / 423.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003173/0.2856, allocations: 1.04 MB / 424.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.289, allocations: 1.157 MB / 425.6 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.2908, allocations: 0.7757 MB / 426.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003439/0.2943, allocations: 3.152 MB / 429.5 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002506/0.2968, allocations: 2.647 MB / 432.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.2984, allocations: 1.357 MB / 433.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.2999, allocations: 1.616 MB / 435.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004703/0.3004, allocations: 389.5 kB / 435.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.3015, allocations: 0.5908 MB / 436.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005073/0.302, allocations: 0.8671 MB / 436.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.3033, allocations: 1.661 MB / 438.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003225/0.3065, allocations: 5.076 MB / 443.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3065, allocations: 0 / 443.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3066, allocations: 0 / 443.7 MB, free: 31.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.36e-05/0.3066, allocations: 0 / 443.7 MB, free: 31.27 MB / 350.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.006635/0.3133, allocations: 3.488 MB / 447.2 MB, free: 29.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3133, allocations: 14.53 kB / 447.2 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000379/0.3137, allocations: 371.3 kB / 447.5 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002496/0.3162, allocations: 0.5557 MB / 448.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.3188, allocations: 1.792 MB / 449.9 MB, free: 27.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.3189, allocations: 196.8 kB / 450.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003097/0.3192, allocations: 250.4 kB / 450.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004557/0.3238, allocations: 3.289 MB / 453.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.259e-05/0.3239, allocations: 10.91 kB / 453.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002159/0.3241, allocations: 103.8 kB / 453.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.3242, allocations: 121.3 kB / 453.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003758/0.328, allocations: 2.717 MB / 456.6 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01324/0.3412, allocations: 10.96 MB / 467.5 MB, free: 18.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.3442, allocations: 3.596 MB / 471.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.3456, allocations: 0.8329 MB / 472 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00379/0.3494, allocations: 2.399 MB / 474.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.3494, allocations: 47.53 kB / 474.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.264e-06/0.3494, allocations: 0 / 474.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01112/0.3606, allocations: 5.308 MB / 479.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00728/0.3679, allocations: 5.181 MB / 484.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002971/0.3709, allocations: 1.529 MB / 486.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.3711, allocations: 49.83 kB / 486.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008338/0.3719, allocations: 1.25 MB / 487.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004096/0.3724, allocations: 402.9 kB / 488.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005557/0.3729, allocations: 277 kB / 488.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.246e-05/0.373, allocations: 302.2 kB / 488.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009728/0.374, allocations: 0.6087 MB / 489.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/0.3751, allocations: 1.148 MB / 490.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002073/0.3772, allocations: 1.887 MB / 492.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.3772, allocations: 9.906 kB / 492.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003043/0.3802, allocations: 2.011 MB / 494.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.3803, allocations: 18.06 kB / 494.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/0.3803, allocations: 19.12 kB / 494.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002629/0.3806, allocations: 99.95 kB / 494.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.382, allocations: 401.9 kB / 494.9 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.331e-05/0.382, allocations: 31.92 kB / 494.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3833, allocations: 87.83 kB / 495 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.476e-05/0.3834, allocations: 68 kB / 495 MB, free: 1.289 MB / 350.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.001151/0.3845, allocations: 0.8095 MB / 495.9 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.3848, allocations: 169.9 kB / 496 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.3884, allocations: 1.828 MB / 497.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.3884, allocations: 12 kB / 497.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3884, allocations: 4 kB / 497.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.3884, allocations: 3.984 kB / 497.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.3989, allocations: 5.632 MB / 0.4917 GB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.3989, allocations: 4 kB / 0.4917 GB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008482/0.3998, allocations: 179.7 kB / 0.4919 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4011, allocations: 401.7 kB / 0.4923 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4012, allocations: 28 kB / 0.4923 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007593/0.4088, allocations: 5.173 MB / 0.4973 GB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007639/0.4165, allocations: 5.069 MB / 0.5023 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00479/0.4213, allocations: 2.765 MB / 0.505 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/0.4224, allocations: 382.9 kB / 0.5054 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005128/0.4229, allocations: 20 kB / 0.5054 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.4241, allocations: 59.94 kB / 0.5054 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.4243, allocations: 100.8 kB / 0.5055 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.958e-05/0.4244, allocations: 32 kB / 0.5056 GB, free: 10.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00214/0.4266, allocations: 1.038 MB / 0.5066 GB, free: 9.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4266, allocations: 3.938 kB / 0.5066 GB, free: 9.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002533/0.4291, allocations: 0.5039 MB / 0.5071 GB, free: 8.613 MB / 382.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.005155/0.4343, allocations: 3.353 MB / 0.5103 GB, free: 5.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003862/0.4382, allocations: 1.99 MB / 0.5123 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4382, allocations: 1.875 kB / 0.5123 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.4401, allocations: 1.124 MB / 0.5134 GB, free: 2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/0.4429, allocations: 472.8 kB / 0.5138 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02985/0.4728, allocations: 18.63 MB / 0.532 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002211/0.475, allocations: 1.953 MB / 0.5339 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001621/0.4767, allocations: 378.8 kB / 0.5343 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.4783, allocations: 0.9562 MB / 0.5352 GB, free: 10.1 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4783, allocations: 0 / 0.5352 GB, free: 10.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/0.7385, allocations: 45.3 MB / 0.5795 GB, free: 130.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.81, allocations: 14.27 kB / 0.5795 GB, free: 130.1 MB / 446.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)