Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.001664/0.001664, allocations: 115.2 kB / 17.06 MB, free: 6 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.001895/0.001895, allocations: 193.4 kB / 18 MB, free: 5.074 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1846/0.1846, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 71.88 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3275, allocations: 58.04 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007387/0.3349, allocations: 7.081 MB / 0.5105 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004353/0.3393, allocations: 2.853 MB / 0.5133 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006927/0.3401, allocations: 29.56 kB / 0.5134 GB, free: 500 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.3413, allocations: 378 kB / 0.5137 GB, free: 276 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.3434, allocations: 0.787 MB / 0.5145 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008625/0.3443, allocations: 300.4 kB / 0.5148 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002368/0.3467, allocations: 1.58 MB / 0.5163 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001957/0.3487, allocations: 1.427 MB / 0.5177 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.3499, allocations: 0.6377 MB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.3512, allocations: 0.7487 MB / 0.5191 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.3515, allocations: 140.5 kB / 0.5192 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.353, allocations: 0.6785 MB / 0.5199 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000657/0.3536, allocations: 0.5017 MB / 0.5203 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008945/0.3545, allocations: 0.6584 MB / 0.521 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003084/0.3576, allocations: 2.12 MB / 0.5231 GB, free: 12.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3577, allocations: 4 kB / 0.5231 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3577, allocations: 0 / 0.5231 GB, free: 12.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.481e-05/0.3577, allocations: 0 / 0.5231 GB, free: 12.18 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.00382/0.3615, allocations: 1.584 MB / 0.5246 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.3616, allocations: 9.625 kB / 0.5246 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000253/0.3618, allocations: 167.7 kB / 0.5248 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007335/0.3626, allocations: 170.9 kB / 0.5249 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.3642, allocations: 0.8504 MB / 0.5258 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002236/0.3644, allocations: 201.8 kB / 0.526 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001886/0.3646, allocations: 102.8 kB / 0.5261 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00264/0.3673, allocations: 1.467 MB / 0.5275 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.3674, allocations: 2.781 kB / 0.5275 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3675, allocations: 46.25 kB / 0.5275 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001395/0.3676, allocations: 78.55 kB / 0.5276 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.37, allocations: 1.264 MB / 0.5288 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007885/0.3779, allocations: 5.18 MB / 0.5339 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.3797, allocations: 1.036 MB / 0.5349 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008613/0.3806, allocations: 0.4977 MB / 0.5354 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-05/0.3807, allocations: 7.969 kB / 0.5354 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.3807, allocations: 54.8 kB / 0.5355 GB, free: 3.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.945e-06/0.3808, allocations: 0 / 0.5355 GB, free: 3.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006855/0.3876, allocations: 3.093 MB / 0.5385 GB, free: 2.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/0.3877, allocations: 119.1 kB / 0.5386 GB, free: 1.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000941/0.3887, allocations: 0.6872 MB / 0.5393 GB, free: 1.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-05/0.3888, allocations: 36.95 kB / 0.5393 GB, free: 1.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.3891, allocations: 492 kB / 0.5398 GB, free: 1.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.3894, allocations: 284.4 kB / 0.54 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.3898, allocations: 195.1 kB / 0.5402 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.39, allocations: 392.2 kB / 0.5406 GB, free: 316 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007676/0.3908, allocations: 440.4 kB / 0.541 GB, free: 96 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009814/0.3918, allocations: 0.7138 MB / 0.5417 GB, free: 15.51 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005907/0.3977, allocations: 2.585 MB / 0.5442 GB, free: 13.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.3977, allocations: 3.312 kB / 0.5443 GB, free: 13.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002479/0.4002, allocations: 1.314 MB / 0.5455 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.4002, allocations: 11.94 kB / 0.5455 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.4003, allocations: 11.98 kB / 0.5456 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.4005, allocations: 86.11 kB / 0.5456 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000925/0.4015, allocations: 223.6 kB / 0.5459 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.4028, allocations: 1.442 MB / 0.5473 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008562/0.4037, allocations: 87.8 kB / 0.5473 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.308e-05/0.4038, allocations: 36 kB / 0.5474 GB, free: 10.87 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000746/0.4045, allocations: 428.3 kB / 0.5478 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/0.4048, allocations: 79.62 kB / 0.5479 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.4067, allocations: 0.9861 MB / 0.5488 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.4068, allocations: 15.94 kB / 0.5488 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.4068, allocations: 4 kB / 0.5488 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4068, allocations: 3.984 kB / 0.5488 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.411, allocations: 2.265 MB / 0.5511 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.411, allocations: 8.031 kB / 0.5511 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/0.4118, allocations: 139.8 kB / 0.5512 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.4119, allocations: 20.84 kB / 0.5512 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.83e-05/0.4119, allocations: 16 kB / 0.5512 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.4131, allocations: 1.39 MB / 0.5526 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4131, allocations: 0 / 0.5526 GB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.4158, allocations: 1.655 MB / 0.5542 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.4163, allocations: 252.5 kB / 0.5545 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.4164, allocations: 20 kB / 0.5545 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.4169, allocations: 51.94 kB / 0.5545 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.4171, allocations: 60.42 kB / 0.5546 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.938e-05/0.4172, allocations: 16 kB / 0.5546 GB, free: 3.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007307/0.4179, allocations: 486.9 kB / 0.5551 GB, free: 2.719 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4179, allocations: 0 / 0.5551 GB, free: 2.719 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001267/0.4192, allocations: 263.9 kB / 0.5553 GB, free: 2.461 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00332/0.4225, allocations: 2.26 MB / 0.5575 GB, free: 168 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.4248, allocations: 1.245 MB / 0.5587 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4248, allocations: 0 / 0.5587 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.4259, allocations: 0.6188 MB / 0.5593 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.4272, allocations: 224.3 kB / 0.5595 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.4417, allocations: 9.028 MB / 0.5684 GB, free: 4.652 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009532/0.4427, allocations: 1.161 MB / 0.5695 GB, free: 3.461 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008086/0.4435, allocations: 258.9 kB / 0.5697 GB, free: 3.203 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/0.4441, allocations: 351.2 kB / 0.5701 GB, free: 2.859 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4441, allocations: 4 kB / 0.5701 GB, free: 2.855 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05689/0.501, allocations: 20.91 MB / 0.5905 GB, free: 14.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/15.21, allocations: 11.88 kB / 0.5905 GB, free: 14.15 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)