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.001042/0.001042, allocations: 108 kB / 15.61 MB, free: 152 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.00107/0.00107, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1247/0.1247, allocations: 2.58 MB / 293 MB, free: 3.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 87.86 kB / 354.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08496/0.08667, allocations: 50.04 MB / 404.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01534/0.1021, allocations: 14.12 MB / 418.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1965/0.2986, allocations: 4.98 MB / 423.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/0.3011, allocations: 87.91 kB / 423.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003366/0.3045, allocations: 1.037 MB / 424.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003281/0.3078, allocations: 1.154 MB / 425.6 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.3093, allocations: 0.78 MB / 426.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.3124, allocations: 3.152 MB / 429.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00258/0.315, allocations: 2.651 MB / 432.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.3166, allocations: 1.362 MB / 433.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.3181, allocations: 1.605 MB / 435.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004087/0.3185, allocations: 388 kB / 435.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.3196, allocations: 0.5945 MB / 436.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005499/0.3202, allocations: 0.865 MB / 436.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.3215, allocations: 1.669 MB / 438.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004235/0.3258, allocations: 5.071 MB / 443.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3258, allocations: 0 / 443.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3258, allocations: 4 kB / 443.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.177e-05/0.3259, allocations: 1.406 kB / 443.7 MB, free: 31.21 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.007248/0.3332, allocations: 3.487 MB / 447.2 MB, free: 29.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3332, allocations: 12.94 kB / 447.2 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004035/0.3337, allocations: 366.8 kB / 447.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002471/0.3361, allocations: 0.5555 MB / 448.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.3388, allocations: 1.789 MB / 449.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.3389, allocations: 193.7 kB / 450.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003454/0.3393, allocations: 250.7 kB / 450.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00448/0.3438, allocations: 3.288 MB / 453.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-05/0.3438, allocations: 3.906 kB / 453.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/0.344, allocations: 103.9 kB / 453.7 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.3442, allocations: 124.8 kB / 453.8 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0038/0.348, allocations: 2.717 MB / 456.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01496/0.3629, allocations: 10.96 MB / 467.5 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.366, allocations: 3.6 MB / 471.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.3675, allocations: 0.8367 MB / 472 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003798/0.3713, allocations: 2.402 MB / 474.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.3713, allocations: 43.27 kB / 474.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.715e-06/0.3713, allocations: 0 / 474.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01078/0.3821, allocations: 5.306 MB / 479.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006877/0.389, allocations: 5.182 MB / 484.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.3913, allocations: 1.53 MB / 486.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.3915, allocations: 44.78 kB / 486.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007005/0.3922, allocations: 1.245 MB / 487.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.3925, allocations: 403.1 kB / 488.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004013/0.3929, allocations: 278.1 kB / 488.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.3929, allocations: 302.9 kB / 488.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008882/0.3938, allocations: 0.6108 MB / 489.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.395, allocations: 1.139 MB / 490.4 MB, free: 4.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.3969, allocations: 1.895 MB / 492.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.397, allocations: 6.156 kB / 492.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002755/0.3997, allocations: 2.019 MB / 494.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3998, allocations: 15.88 kB / 494.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.3998, allocations: 18.41 kB / 494.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002476/0.4, allocations: 96.55 kB / 494.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.4013, allocations: 394.6 kB / 494.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.4014, allocations: 39.86 kB / 494.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.4025, allocations: 87.12 kB / 495 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.4026, allocations: 67.98 kB / 495 MB, free: 1.336 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.001107/0.4037, allocations: 0.8095 MB / 495.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.4039, allocations: 173.8 kB / 496 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.407, allocations: 1.828 MB / 497.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.407, allocations: 12 kB / 497.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.407, allocations: 0 / 497.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.407, allocations: 7.969 kB / 497.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008496/0.4155, allocations: 5.629 MB / 0.4917 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.4156, allocations: 4 kB / 0.4917 GB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.4163, allocations: 184.1 kB / 0.4919 GB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/0.4175, allocations: 405.3 kB / 0.4923 GB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.81e-05/0.4175, allocations: 23.98 kB / 0.4923 GB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006767/0.4243, allocations: 5.167 MB / 0.4973 GB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006918/0.4313, allocations: 5.077 MB / 0.5023 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004392/0.4357, allocations: 2.76 MB / 0.505 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007581/0.4365, allocations: 383 kB / 0.5054 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.4367, allocations: 27.98 kB / 0.5054 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008134/0.4375, allocations: 60 kB / 0.5054 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.4377, allocations: 92.75 kB / 0.5055 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.539e-05/0.4378, allocations: 32 kB / 0.5056 GB, free: 10.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001504/0.4393, allocations: 1.038 MB / 0.5066 GB, free: 9.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4393, allocations: 3.938 kB / 0.5066 GB, free: 9.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001879/0.4412, allocations: 0.5039 MB / 0.5071 GB, free: 8.66 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.004506/0.4457, allocations: 3.353 MB / 0.5103 GB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003655/0.4494, allocations: 1.992 MB / 0.5123 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4494, allocations: 0 / 0.5123 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/0.4512, allocations: 1.131 MB / 0.5134 GB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/0.4536, allocations: 468.6 kB / 0.5138 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/0.4779, allocations: 18.62 MB / 0.532 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001551/0.4795, allocations: 1.953 MB / 0.5339 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.4807, allocations: 382.8 kB / 0.5343 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/0.4819, allocations: 0.9523 MB / 0.5352 GB, free: 10.15 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.482, allocations: 0 / 0.5352 GB, free: 10.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2519/0.7339, allocations: 45.31 MB / 0.5795 GB, free: 130.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.48, allocations: 3.016 kB / 0.5795 GB, free: 130.2 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 & /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)