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.0015/0.0015, allocations: 104.8 kB / 17.05 MB, free: 6.027 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.00187/0.00187, allocations: 196 kB / 18 MB, free: 5.105 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.51/1.51, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1836/0.1836, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3535, allocations: 58.05 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008122/0.3616, allocations: 7.087 MB / 0.5105 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004322/0.366, allocations: 2.852 MB / 0.5133 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008222/0.3668, allocations: 27.25 kB / 0.5133 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.3681, allocations: 379.6 kB / 0.5137 GB, free: 384 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.3702, allocations: 0.7872 MB / 0.5145 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000905/0.3711, allocations: 306.8 kB / 0.5148 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002769/0.3739, allocations: 1.568 MB / 0.5163 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002722/0.3766, allocations: 1.427 MB / 0.5177 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.3783, allocations: 0.6658 MB / 0.5183 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.3796, allocations: 0.7499 MB / 0.5191 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.3799, allocations: 144.3 kB / 0.5192 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.3814, allocations: 0.6786 MB / 0.5199 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006184/0.382, allocations: 0.4958 MB / 0.5204 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008862/0.3829, allocations: 0.6643 MB / 0.521 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002977/0.3859, allocations: 2.118 MB / 0.5231 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3859, allocations: 4 kB / 0.5231 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3859, allocations: 0.5625 kB / 0.5231 GB, free: 12.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.694e-05/0.3859, allocations: 1.562 kB / 0.5231 GB, free: 12.28 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.00412/0.3901, allocations: 1.538 MB / 0.5246 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.988e-05/0.3902, allocations: 13.64 kB / 0.5246 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003129/0.3905, allocations: 167.6 kB / 0.5248 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008766/0.3914, allocations: 165.8 kB / 0.5249 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.3934, allocations: 0.8498 MB / 0.5257 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.3936, allocations: 202.8 kB / 0.5259 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.3938, allocations: 103.2 kB / 0.526 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.3966, allocations: 1.465 MB / 0.5275 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.764e-05/0.3966, allocations: 10.75 kB / 0.5275 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.3967, allocations: 41.09 kB / 0.5275 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.3969, allocations: 80 kB / 0.5276 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.3991, allocations: 1.262 MB / 0.5288 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007267/0.4064, allocations: 5.175 MB / 0.5339 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.408, allocations: 1.027 MB / 0.5349 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007566/0.4087, allocations: 0.4938 MB / 0.5354 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.4088, allocations: 12.33 kB / 0.5354 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.4088, allocations: 45.66 kB / 0.5354 GB, free: 4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.895e-06/0.4088, allocations: 5.281 kB / 0.5354 GB, free: 3.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006298/0.4151, allocations: 3.062 MB / 0.5384 GB, free: 2.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.4152, allocations: 111 kB / 0.5385 GB, free: 2.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008599/0.4161, allocations: 0.6828 MB / 0.5392 GB, free: 1.633 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.4162, allocations: 40.48 kB / 0.5392 GB, free: 1.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.4165, allocations: 487.4 kB / 0.5397 GB, free: 1.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.4167, allocations: 267.1 kB / 0.5399 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003664/0.4171, allocations: 191.2 kB / 0.5401 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4173, allocations: 391.5 kB / 0.5405 GB, free: 452 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008272/0.4181, allocations: 445 kB / 0.5409 GB, free: 228 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.4193, allocations: 0.7137 MB / 0.5416 GB, free: 15.64 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.00614/0.4255, allocations: 2.581 MB / 0.5441 GB, free: 14.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.791e-05/0.4255, allocations: 3.5 kB / 0.5441 GB, free: 14.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002849/0.4284, allocations: 1.309 MB / 0.5454 GB, free: 13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.4284, allocations: 12.69 kB / 0.5454 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.4284, allocations: 8 kB / 0.5454 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002597/0.4287, allocations: 89.67 kB / 0.5455 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000839/0.4296, allocations: 223.6 kB / 0.5457 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.4309, allocations: 1.442 MB / 0.5472 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009281/0.4319, allocations: 79.75 kB / 0.5472 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.924e-05/0.432, allocations: 39.98 kB / 0.5473 GB, free: 10.97 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.0007024/0.4327, allocations: 421.3 kB / 0.5477 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/0.433, allocations: 79.06 kB / 0.5477 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.4347, allocations: 0.9862 MB / 0.5487 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.4348, allocations: 23.94 kB / 0.5487 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4348, allocations: 4 kB / 0.5487 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.4348, allocations: 3.984 kB / 0.5487 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.4389, allocations: 2.269 MB / 0.551 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/0.4389, allocations: 4 kB / 0.551 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.4397, allocations: 139.8 kB / 0.5511 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.4398, allocations: 24.84 kB / 0.5511 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.233e-05/0.4398, allocations: 15.98 kB / 0.5511 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.4409, allocations: 1.382 MB / 0.5525 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4409, allocations: 4.156 kB / 0.5525 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/0.4433, allocations: 1.642 MB / 0.5541 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.4438, allocations: 248.1 kB / 0.5543 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.4439, allocations: 20.08 kB / 0.5543 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.4445, allocations: 47.92 kB / 0.5544 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.4446, allocations: 56.48 kB / 0.5544 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.496e-05/0.4447, allocations: 19.98 kB / 0.5545 GB, free: 3.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006271/0.4453, allocations: 487 kB / 0.5549 GB, free: 2.836 MB / 414.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4453, allocations: 0 / 0.5549 GB, free: 2.836 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001148/0.4465, allocations: 264 kB / 0.5552 GB, free: 2.578 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.002854/0.4493, allocations: 2.266 MB / 0.5574 GB, free: 288 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.4514, allocations: 1.245 MB / 0.5586 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4514, allocations: 1.875 kB / 0.5586 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.4523, allocations: 0.611 MB / 0.5592 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4535, allocations: 233.8 kB / 0.5594 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.4682, allocations: 8.991 MB / 0.5682 GB, free: 4.805 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.4693, allocations: 1.161 MB / 0.5693 GB, free: 3.613 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007288/0.47, allocations: 251 kB / 0.5696 GB, free: 3.363 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005213/0.4706, allocations: 351.3 kB / 0.5699 GB, free: 3.02 MB / 430.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4706, allocations: 0 / 0.5699 GB, free: 3.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05977/0.5304, allocations: 21.2 MB / 0.5906 GB, free: 14.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.41, allocations: 10.59 kB / 0.5906 GB, free: 14.04 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)