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.001258/0.001258, allocations: 113.8 kB / 17.06 MB, free: 5.996 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.001246/0.001246, allocations: 194.9 kB / 18.01 MB, free: 5.07 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.351/1.351, 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/package.mo): time 0.1724/0.1724, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3242, allocations: 58.06 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008167/0.3324, allocations: 7.082 MB / 0.5105 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004413/0.3369, allocations: 2.863 MB / 0.5133 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006411/0.3376, allocations: 27.44 kB / 0.5133 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.3388, allocations: 374.1 kB / 0.5137 GB, free: 332 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002284/0.3411, allocations: 0.793 MB / 0.5145 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000888/0.342, allocations: 304.1 kB / 0.5148 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002264/0.3443, allocations: 1.573 MB / 0.5163 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.3462, allocations: 1.424 MB / 0.5177 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.3474, allocations: 0.6617 MB / 0.5183 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.3486, allocations: 0.7501 MB / 0.5191 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.3488, allocations: 140.3 kB / 0.5192 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.3501, allocations: 0.6865 MB / 0.5199 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005499/0.3506, allocations: 0.4914 MB / 0.5204 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008386/0.3515, allocations: 0.664 MB / 0.521 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.3544, allocations: 2.133 MB / 0.5231 GB, free: 12.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3544, allocations: 0 / 0.5231 GB, free: 12.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3544, allocations: 0 / 0.5231 GB, free: 12.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.284e-05/0.3545, allocations: 0 / 0.5231 GB, free: 12.22 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.003569/0.358, allocations: 1.577 MB / 0.5246 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3581, allocations: 13.69 kB / 0.5246 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002345/0.3583, allocations: 164.7 kB / 0.5248 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006985/0.359, allocations: 169.8 kB / 0.525 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.3607, allocations: 0.8567 MB / 0.5258 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.3609, allocations: 200.6 kB / 0.526 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.3611, allocations: 101.9 kB / 0.5261 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/0.3637, allocations: 1.467 MB / 0.5275 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/0.3638, allocations: 3.453 kB / 0.5275 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.3639, allocations: 45.16 kB / 0.5276 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.364, allocations: 83.59 kB / 0.5276 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/0.3663, allocations: 1.262 MB / 0.5289 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008624/0.375, allocations: 5.179 MB / 0.5339 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.3767, allocations: 1.033 MB / 0.5349 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009573/0.3777, allocations: 0.494 MB / 0.5354 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.101e-05/0.3778, allocations: 16.75 kB / 0.5354 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.3778, allocations: 42.97 kB / 0.5355 GB, free: 3.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 4.578e-06/0.3778, allocations: 0 / 0.5355 GB, free: 3.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.007075/0.3849, allocations: 3.1 MB / 0.5385 GB, free: 2.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.385, allocations: 110.6 kB / 0.5386 GB, free: 1.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.386, allocations: 0.6913 MB / 0.5393 GB, free: 1.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.662e-05/0.3861, allocations: 37.02 kB / 0.5393 GB, free: 1.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.3865, allocations: 488.3 kB / 0.5398 GB, free: 1.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/0.3867, allocations: 284.8 kB / 0.5401 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/0.3871, allocations: 191.2 kB / 0.5402 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3873, allocations: 390.5 kB / 0.5406 GB, free: 360 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.3881, allocations: 445 kB / 0.541 GB, free: 136 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009543/0.389, allocations: 0.7149 MB / 0.5417 GB, free: 15.55 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.00596/0.395, allocations: 2.58 MB / 0.5443 GB, free: 13.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.395, allocations: 2.625 kB / 0.5443 GB, free: 13.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002641/0.3977, allocations: 1.322 MB / 0.5456 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.3977, allocations: 11.94 kB / 0.5456 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.3978, allocations: 8 kB / 0.5456 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.3981, allocations: 86.17 kB / 0.5457 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009096/0.399, allocations: 223.6 kB / 0.5459 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.4002, allocations: 1.45 MB / 0.5473 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009134/0.4011, allocations: 75.88 kB / 0.5474 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.4012, allocations: 40 kB / 0.5474 GB, free: 10.85 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.0007692/0.402, allocations: 423.8 kB / 0.5478 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.4023, allocations: 83.47 kB / 0.5479 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.4042, allocations: 0.9784 MB / 0.5488 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.271e-05/0.4043, allocations: 23.92 kB / 0.5489 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4043, allocations: 4 kB / 0.5489 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4043, allocations: 7.984 kB / 0.5489 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004525/0.4088, allocations: 2.265 MB / 0.5511 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.4089, allocations: 8.031 kB / 0.5511 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007622/0.4096, allocations: 139.8 kB / 0.5512 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.4098, allocations: 24.8 kB / 0.5512 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.525e-05/0.4099, allocations: 23.98 kB / 0.5513 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.4111, allocations: 1.379 MB / 0.5526 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.4111, allocations: 0 / 0.5526 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.4138, allocations: 1.659 MB / 0.5542 GB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005717/0.4144, allocations: 248.4 kB / 0.5545 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.4147, allocations: 16 kB / 0.5545 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/0.4154, allocations: 47.94 kB / 0.5545 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.4156, allocations: 60.47 kB / 0.5546 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.107e-05/0.4156, allocations: 16 kB / 0.5546 GB, free: 3.176 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009197/0.4166, allocations: 487 kB / 0.5551 GB, free: 2.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4166, allocations: 0 / 0.5551 GB, free: 2.707 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001422/0.418, allocations: 263.9 kB / 0.5553 GB, free: 2.449 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.003425/0.4214, allocations: 2.257 MB / 0.5575 GB, free: 156 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.4237, allocations: 1.249 MB / 0.5587 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4238, allocations: 0 / 0.5587 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009822/0.4248, allocations: 0.6085 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.001525/0.4263, allocations: 241 kB / 0.5596 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.4405, allocations: 9.037 MB / 0.5684 GB, free: 4.625 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009051/0.4414, allocations: 1.161 MB / 0.5695 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007786/0.4422, allocations: 246.9 kB / 0.5698 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/0.4428, allocations: 347.3 kB / 0.5701 GB, free: 2.848 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4428, allocations: 0 / 0.5701 GB, free: 2.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05282/0.4956, allocations: 20.91 MB / 0.5905 GB, free: 14.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.3, allocations: 6.75 kB / 0.5905 GB, free: 14.1 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)