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.001116/0.001116, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001029/0.001029, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.419/1.419, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.03 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 56.34 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1111, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.00869/0.1199, allocations: 7.086 MB / 464.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004388/0.1243, allocations: 2.859 MB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006826/0.125, allocations: 23.88 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.1264, allocations: 385 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002076/0.1285, allocations: 0.7894 MB / 468.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007457/0.1292, allocations: 299.6 kB / 468.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001903/0.1312, allocations: 1.581 MB / 470 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001787/0.133, allocations: 1.417 MB / 471.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.134, allocations: 0.6386 MB / 472 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.1353, allocations: 0.7476 MB / 472.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005065/0.1358, allocations: 140 kB / 472.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.1375, allocations: 0.7099 MB / 473.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006333/0.1381, allocations: 0.4988 MB / 474.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.1392, allocations: 0.6612 MB / 474.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002593/0.1418, allocations: 2.088 MB / 476.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1418, allocations: 0 / 476.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1419, allocations: 0 / 476.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.717e-05/0.1419, allocations: 4 kB / 476.9 MB, free: 3.945 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004125/0.1461, allocations: 1.547 MB / 478.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.1461, allocations: 15.89 kB / 478.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003696/0.1465, allocations: 164.9 kB / 478.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008383/0.1474, allocations: 167.5 kB / 478.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.1489, allocations: 0.8032 MB / 479.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.1491, allocations: 200.8 kB / 479.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002161/0.1493, allocations: 115.8 kB / 479.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002469/0.1518, allocations: 1.465 MB / 481.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.1518, allocations: 4 kB / 481.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.1519, allocations: 43.84 kB / 481.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/0.1521, allocations: 73.97 kB / 481.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002168/0.1542, allocations: 1.265 MB / 482.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007431/0.1617, allocations: 5.227 MB / 488 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.1634, allocations: 1.027 MB / 489 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008202/0.1643, allocations: 0.4933 MB / 489.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.202e-05/0.1643, allocations: 9.188 kB / 489.5 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.1644, allocations: 55.03 kB / 489.5 MB, free: 6.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 5.17e-06/0.1644, allocations: 4 kB / 489.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006921/0.1713, allocations: 3.055 MB / 492.6 MB, free: 3.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.597e-05/0.1714, allocations: 111.4 kB / 492.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.1724, allocations: 0.6875 MB / 493.4 MB, free: 2.871 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.202e-05/0.1725, allocations: 33.7 kB / 493.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004186/0.1729, allocations: 482.8 kB / 493.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003143/0.1733, allocations: 276.2 kB / 494.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/0.1736, allocations: 190.4 kB / 494.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.1739, allocations: 390.7 kB / 494.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007645/0.1746, allocations: 445.7 kB / 495.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009803/0.1756, allocations: 0.7168 MB / 495.9 MB, free: 228 kB / 366.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.005754/0.1814, allocations: 2.579 MB / 498.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.1814, allocations: 4 kB / 498.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002373/0.1838, allocations: 1.312 MB / 499.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.1838, allocations: 12.66 kB / 499.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.1839, allocations: 8 kB / 499.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/0.1842, allocations: 89.61 kB / 499.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008419/0.185, allocations: 223.6 kB / 0.4884 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.1862, allocations: 1.457 MB / 0.4898 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007799/0.187, allocations: 71.91 kB / 0.4899 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.1871, allocations: 43.98 kB / 0.4899 GB, free: 10.13 MB / 382.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.0005895/0.1877, allocations: 422.8 kB / 0.4903 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.188, allocations: 82.97 kB / 0.4904 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.1897, allocations: 0.9784 MB / 0.4914 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.1898, allocations: 19.94 kB / 0.4914 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1898, allocations: 4 kB / 0.4914 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.1898, allocations: 3.984 kB / 0.4914 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004005/0.1938, allocations: 2.273 MB / 0.4936 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.1938, allocations: 0 / 0.4936 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007129/0.1945, allocations: 143.8 kB / 0.4937 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.1947, allocations: 24.84 kB / 0.4938 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.437e-05/0.1947, allocations: 23.97 kB / 0.4938 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009871/0.1957, allocations: 1.378 MB / 0.4951 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1957, allocations: 0 / 0.4951 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/0.198, allocations: 1.65 MB / 0.4967 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003955/0.1984, allocations: 252 kB / 0.497 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.1986, allocations: 16 kB / 0.497 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.1992, allocations: 51.94 kB / 0.4971 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.1993, allocations: 56.48 kB / 0.4971 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.1994, allocations: 19.98 kB / 0.4971 GB, free: 2.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005957/0.2, allocations: 487 kB / 0.4976 GB, free: 1.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2, allocations: 0 / 0.4976 GB, free: 1.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000963/0.201, allocations: 264 kB / 0.4978 GB, free: 1.73 MB / 382.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.002813/0.2038, allocations: 2.241 MB / 0.5 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002644/0.2064, allocations: 1.529 MB / 0.5015 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2065, allocations: 0 / 0.5015 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008849/0.2074, allocations: 0.6167 MB / 0.5021 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.2086, allocations: 233.2 kB / 0.5023 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.2227, allocations: 9.242 MB / 0.5114 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008879/0.2236, allocations: 1.161 MB / 0.5125 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000877/0.2246, allocations: 250.9 kB / 0.5127 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005279/0.2251, allocations: 351.3 kB / 0.5131 GB, free: 1.648 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.2251, allocations: 0 / 0.5131 GB, free: 1.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2598/0.4849, allocations: 20.54 MB / 0.5331 GB, free: 66.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.667/10.15, allocations: 6.828 kB / 0.5331 GB, free: 66.12 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)