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.005526/0.005526, allocations: 99.73 kB / 15.73 MB, free: 5.594 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.001373/0.001373, allocations: 197.2 kB / 16.67 MB, free: 5.527 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01264/0.01264, allocations: 2.595 MB / 293.1 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 99.86 kB / 404.8 MB, free: 30.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08217, allocations: 50.03 MB / 454.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01607/0.09829, allocations: 14.13 MB / 469 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1092, allocations: 4.976 MB / 474 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002956/0.1122, allocations: 83.69 kB / 474.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003679/0.1159, allocations: 1.095 MB / 475.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00441/0.1204, allocations: 1.204 MB / 476.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002457/0.1229, allocations: 0.779 MB / 477.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005434/0.1283, allocations: 3.18 MB / 480.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003778/0.1322, allocations: 2.648 MB / 483 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002606/0.1348, allocations: 1.378 MB / 484.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00299/0.1378, allocations: 1.611 MB / 486 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009771/0.1389, allocations: 388 kB / 486.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.1406, allocations: 0.5818 MB / 486.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.1416, allocations: 0.8725 MB / 487.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002601/0.1443, allocations: 1.661 MB / 489.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00674/0.151, allocations: 5.121 MB / 494.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1511, allocations: 0 / 494.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1511, allocations: 0 / 494.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001528/0.1513, allocations: 4 kB / 494.6 MB, free: 4.043 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.009176/0.1604, allocations: 3.486 MB / 498.1 MB, free: 500 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.1605, allocations: 12.03 kB / 498.1 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005879/0.1611, allocations: 371.3 kB / 498.4 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002638/0.1637, allocations: 0.5441 MB / 499 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/0.1673, allocations: 1.851 MB / 0.4891 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.1674, allocations: 185.5 kB / 0.4893 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005106/0.168, allocations: 259.9 kB / 0.4895 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005797/0.1738, allocations: 3.277 MB / 0.4927 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.65e-05/0.1739, allocations: 7.906 kB / 0.4927 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.1741, allocations: 108 kB / 0.4928 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/0.1742, allocations: 121 kB / 0.4929 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004812/0.1791, allocations: 2.717 MB / 0.4956 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2699/0.449, allocations: 10.82 MB / 0.5062 GB, free: 46.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003262/0.4523, allocations: 3.61 MB / 0.5097 GB, free: 43.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.4539, allocations: 0.8158 MB / 0.5105 GB, free: 43.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004586/0.4585, allocations: 2.398 MB / 0.5128 GB, free: 42.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.4586, allocations: 39.03 kB / 0.5129 GB, free: 42.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.785e-06/0.4586, allocations: 0 / 0.5129 GB, free: 42.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01231/0.4709, allocations: 5.296 MB / 0.518 GB, free: 40.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007031/0.478, allocations: 5.165 MB / 0.5231 GB, free: 36.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002146/0.4802, allocations: 1.536 MB / 0.5246 GB, free: 36.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.4804, allocations: 49.61 kB / 0.5246 GB, free: 36.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006685/0.4811, allocations: 1.24 MB / 0.5258 GB, free: 35.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/0.4814, allocations: 417 kB / 0.5262 GB, free: 34.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/0.4818, allocations: 273.3 kB / 0.5265 GB, free: 34.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.446e-05/0.4819, allocations: 304.6 kB / 0.5268 GB, free: 34.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008621/0.4827, allocations: 0.6115 MB / 0.5274 GB, free: 34.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.4838, allocations: 1.144 MB / 0.5285 GB, free: 33.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.4858, allocations: 1.893 MB / 0.5303 GB, free: 31.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.4858, allocations: 3.75 kB / 0.5303 GB, free: 31.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003097/0.4889, allocations: 2.015 MB / 0.5323 GB, free: 30.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.489, allocations: 18.22 kB / 0.5323 GB, free: 30.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.489, allocations: 15.88 kB / 0.5323 GB, free: 30.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.4893, allocations: 101.1 kB / 0.5324 GB, free: 30.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.4906, allocations: 394.6 kB / 0.5328 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.673e-05/0.4907, allocations: 35.45 kB / 0.5329 GB, free: 30.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4922, allocations: 76.88 kB / 0.5329 GB, free: 30.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.4923, allocations: 78.02 kB / 0.533 GB, free: 30.51 MB / 382.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.001767/0.4941, allocations: 0.7984 MB / 0.5338 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005265/0.4946, allocations: 175.3 kB / 0.5339 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/0.4975, allocations: 1.833 MB / 0.5357 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.4976, allocations: 10.44 kB / 0.5357 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.4976, allocations: 0 / 0.5357 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.4976, allocations: 11.66 kB / 0.5358 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00804/0.5056, allocations: 5.62 MB / 0.5412 GB, free: 23.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.5057, allocations: 4 kB / 0.5413 GB, free: 23.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007138/0.5064, allocations: 180 kB / 0.5414 GB, free: 23.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.5075, allocations: 405.4 kB / 0.5418 GB, free: 22.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.471e-05/0.5076, allocations: 24 kB / 0.5418 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/0.5132, allocations: 5.18 MB / 0.5469 GB, free: 17.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005703/0.519, allocations: 5.049 MB / 0.5518 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003747/0.5228, allocations: 2.771 MB / 0.5545 GB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007661/0.5235, allocations: 382.9 kB / 0.5549 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.5238, allocations: 20 kB / 0.5549 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007306/0.5245, allocations: 64 kB / 0.555 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.5247, allocations: 96.69 kB / 0.5551 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-05/0.5248, allocations: 39.48 kB / 0.5551 GB, free: 8.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001255/0.5261, allocations: 1.038 MB / 0.5561 GB, free: 7.891 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5261, allocations: 0 / 0.5561 GB, free: 7.891 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001692/0.5278, allocations: 0.5039 MB / 0.5566 GB, free: 7.387 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.003563/0.5313, allocations: 3.358 MB / 0.5599 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.5335, allocations: 1.729 MB / 0.5616 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5335, allocations: 1.094 kB / 0.5616 GB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.535, allocations: 1.121 MB / 0.5627 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.5371, allocations: 472.8 kB / 0.5631 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02548/0.5626, allocations: 16.78 MB / 0.5795 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/0.5646, allocations: 1.964 MB / 0.5814 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.566, allocations: 382.9 kB / 0.5818 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/0.5673, allocations: 0.9523 MB / 0.5827 GB, free: 11.73 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5674, allocations: 0 / 0.5827 GB, free: 11.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/0.6769, allocations: 46.36 MB / 0.628 GB, free: 13.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.7/28.37, allocations: 11.25 kB / 0.628 GB, free: 13.72 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)