Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.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(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_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.001402/0.001402, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001385/0.001385, allocations: 189.4 kB / 18 MB, free: 5.09 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1794/0.1794, allocations: 38.03 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 75.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3213, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007131/0.3284, allocations: 7.084 MB / 0.5105 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003983/0.3325, allocations: 2.85 MB / 0.5133 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005309/0.333, allocations: 26.84 kB / 0.5133 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3342, allocations: 378.1 kB / 0.5137 GB, free: 336 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001809/0.336, allocations: 0.7829 MB / 0.5145 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007912/0.3368, allocations: 308.7 kB / 0.5148 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.3389, allocations: 1.571 MB / 0.5163 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001956/0.3408, allocations: 1.426 MB / 0.5177 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.3421, allocations: 0.6445 MB / 0.5183 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.3433, allocations: 0.7485 MB / 0.519 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.3435, allocations: 140.3 kB / 0.5192 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.3447, allocations: 0.6821 MB / 0.5198 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005546/0.3453, allocations: 0.4948 MB / 0.5203 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007994/0.3461, allocations: 0.6646 MB / 0.521 GB, free: 12.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002669/0.3488, allocations: 2.121 MB / 0.523 GB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3488, allocations: 4 kB / 0.5231 GB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3488, allocations: 0 / 0.5231 GB, free: 12.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.702e-05/0.3489, allocations: 0 / 0.5231 GB, free: 12.24 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.003508/0.3524, allocations: 1.578 MB / 0.5246 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3524, allocations: 16.61 kB / 0.5246 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002352/0.3527, allocations: 163.7 kB / 0.5248 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006977/0.3534, allocations: 169.8 kB / 0.5249 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/0.3549, allocations: 0.8544 MB / 0.5258 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002277/0.3552, allocations: 195.2 kB / 0.5259 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/0.3554, allocations: 108.1 kB / 0.5261 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002653/0.358, allocations: 1.47 MB / 0.5275 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.742e-05/0.3581, allocations: 7.406 kB / 0.5275 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.3582, allocations: 37.14 kB / 0.5275 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.3583, allocations: 79.72 kB / 0.5276 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002249/0.3606, allocations: 1.267 MB / 0.5288 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007959/0.3686, allocations: 5.181 MB / 0.5339 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.3704, allocations: 1.035 MB / 0.5349 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008692/0.3713, allocations: 0.493 MB / 0.5354 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/0.3713, allocations: 12.8 kB / 0.5354 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.3714, allocations: 45.47 kB / 0.5354 GB, free: 3.957 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.196e-06/0.3714, allocations: 5.312 kB / 0.5355 GB, free: 3.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.007282/0.3787, allocations: 3.097 MB / 0.5385 GB, free: 2.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.3788, allocations: 109.8 kB / 0.5386 GB, free: 1.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/0.3798, allocations: 0.6874 MB / 0.5393 GB, free: 1.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.3798, allocations: 41.02 kB / 0.5393 GB, free: 1.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003845/0.3802, allocations: 492.2 kB / 0.5398 GB, free: 1.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.3805, allocations: 285.1 kB / 0.54 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.3808, allocations: 190.1 kB / 0.5402 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.381, allocations: 392 kB / 0.5406 GB, free: 352 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007514/0.3818, allocations: 441.2 kB / 0.541 GB, free: 132 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009721/0.3828, allocations: 0.7215 MB / 0.5417 GB, free: 15.54 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.005772/0.3885, allocations: 2.585 MB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.3886, allocations: 2.969 kB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002391/0.391, allocations: 1.309 MB / 0.5455 GB, free: 12.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.391, allocations: 11.94 kB / 0.5455 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.391, allocations: 8.656 kB / 0.5455 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002629/0.3913, allocations: 93.66 kB / 0.5456 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008645/0.3922, allocations: 223.6 kB / 0.5458 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.3935, allocations: 1.446 MB / 0.5473 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007368/0.3942, allocations: 79.88 kB / 0.5473 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-05/0.3943, allocations: 40 kB / 0.5474 GB, free: 10.9 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.0006678/0.395, allocations: 425.2 kB / 0.5478 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.3952, allocations: 79.48 kB / 0.5479 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.3971, allocations: 0.9822 MB / 0.5488 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/0.3971, allocations: 19.94 kB / 0.5488 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.3971, allocations: 8 kB / 0.5488 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3971, allocations: 3.984 kB / 0.5488 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00399/0.4011, allocations: 2.269 MB / 0.5511 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.4012, allocations: 8 kB / 0.5511 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/0.4019, allocations: 139.8 kB / 0.5512 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.214e-05/0.402, allocations: 28.78 kB / 0.5512 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.4021, allocations: 12 kB / 0.5512 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/0.4032, allocations: 1.386 MB / 0.5526 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4032, allocations: 0 / 0.5526 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.4058, allocations: 1.655 MB / 0.5542 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004145/0.4063, allocations: 248.4 kB / 0.5544 GB, free: 3.359 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.4064, allocations: 27.98 kB / 0.5545 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000523/0.4069, allocations: 43.94 kB / 0.5545 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.4071, allocations: 56.48 kB / 0.5546 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/0.4072, allocations: 16 kB / 0.5546 GB, free: 3.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006731/0.4078, allocations: 490.9 kB / 0.5551 GB, free: 2.746 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4079, allocations: 0 / 0.5551 GB, free: 2.746 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001018/0.4089, allocations: 255.9 kB / 0.5553 GB, free: 2.496 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.003165/0.4121, allocations: 2.257 MB / 0.5575 GB, free: 208 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.4142, allocations: 1.248 MB / 0.5587 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4142, allocations: 0 / 0.5587 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009912/0.4152, allocations: 0.6205 MB / 0.5593 GB, free: 14.29 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.4164, allocations: 233.2 kB / 0.5595 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.4311, allocations: 9.029 MB / 0.5684 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.4323, allocations: 1.161 MB / 0.5695 GB, free: 3.488 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008417/0.4331, allocations: 254.9 kB / 0.5697 GB, free: 3.234 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006365/0.4338, allocations: 347.3 kB / 0.5701 GB, free: 2.895 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4338, allocations: 0 / 0.5701 GB, free: 2.895 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05569/0.4895, allocations: 20.91 MB / 0.5905 GB, free: 14.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.39, allocations: 3.984 kB / 0.5905 GB, free: 14.16 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)