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.001213/0.001214, allocations: 108.4 kB / 16.92 MB, free: 5.789 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.001272/0.001272, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.345/1.345, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.175/0.175, allocations: 38.02 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 62.2 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1138, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01323/0.1271, allocations: 7.076 MB / 464 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007292/0.1344, allocations: 2.863 MB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008198/0.1352, allocations: 35.75 kB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002036/0.1373, allocations: 369.9 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.1405, allocations: 0.7972 MB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1419, allocations: 291.6 kB / 468.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002581/0.1445, allocations: 1.578 MB / 470 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002167/0.1466, allocations: 1.421 MB / 471.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.1477, allocations: 0.6386 MB / 472 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.1489, allocations: 0.7437 MB / 472.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.1492, allocations: 143.9 kB / 472.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.1504, allocations: 0.7138 MB / 473.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005344/0.151, allocations: 0.4988 MB / 474.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008449/0.1518, allocations: 0.6535 MB / 474.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002083/0.1539, allocations: 2.088 MB / 476.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.1539, allocations: 0 / 476.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1539, allocations: 3.938 kB / 476.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.283e-05/0.154, allocations: 0 / 476.9 MB, free: 3.984 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.003436/0.1574, allocations: 1.551 MB / 478.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1575, allocations: 11.89 kB / 478.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002621/0.1578, allocations: 168.9 kB / 478.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006949/0.1585, allocations: 163.5 kB / 478.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.1599, allocations: 0.8149 MB / 479.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/0.1601, allocations: 196.8 kB / 479.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.1603, allocations: 103.9 kB / 479.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.1626, allocations: 1.469 MB / 481.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.548e-05/0.1626, allocations: 8 kB / 481.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.1627, allocations: 39.91 kB / 481.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.1628, allocations: 81.97 kB / 481.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.1649, allocations: 1.261 MB / 482.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007005/0.1719, allocations: 5.231 MB / 487.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.1735, allocations: 1.027 MB / 489 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007589/0.1743, allocations: 0.4894 MB / 489.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.974e-05/0.1744, allocations: 17.25 kB / 489.5 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1744, allocations: 47 kB / 489.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.675e-06/0.1744, allocations: 0 / 489.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006182/0.1806, allocations: 3.062 MB / 492.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.1807, allocations: 115.4 kB / 492.7 MB, free: 3.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009586/0.1817, allocations: 0.6875 MB / 493.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.1818, allocations: 37.7 kB / 493.4 MB, free: 2.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.1821, allocations: 478.7 kB / 493.9 MB, free: 2.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002573/0.1824, allocations: 268.2 kB / 494.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.1827, allocations: 194.5 kB / 494.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1829, allocations: 390.7 kB / 494.7 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007025/0.1836, allocations: 441.8 kB / 495.2 MB, free: 1.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008776/0.1845, allocations: 0.7168 MB / 495.9 MB, free: 264 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.005393/0.1899, allocations: 2.587 MB / 498.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.1899, allocations: 0 / 498.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002089/0.192, allocations: 1.308 MB / 499.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.1921, allocations: 15.88 kB / 499.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.1921, allocations: 12 kB / 499.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002372/0.1923, allocations: 85.66 kB / 499.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008111/0.1932, allocations: 227.9 kB / 0.4884 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000994/0.1942, allocations: 1.45 MB / 0.4898 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000646/0.1948, allocations: 79.83 kB / 0.4899 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.1949, allocations: 40 kB / 0.4899 GB, free: 10.16 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.0005196/0.1954, allocations: 423 kB / 0.4903 GB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.1956, allocations: 82.97 kB / 0.4904 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.1972, allocations: 0.9745 MB / 0.4913 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/0.1973, allocations: 23.94 kB / 0.4914 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1973, allocations: 4 kB / 0.4914 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1973, allocations: 3.984 kB / 0.4914 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00345/0.2007, allocations: 2.281 MB / 0.4936 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.2008, allocations: 0 / 0.4936 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006862/0.2014, allocations: 135.8 kB / 0.4937 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.482e-05/0.2015, allocations: 28.88 kB / 0.4938 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.503e-05/0.2016, allocations: 16 kB / 0.4938 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009034/0.2025, allocations: 1.382 MB / 0.4951 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.2025, allocations: 11.91 kB / 0.4951 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.2047, allocations: 1.642 MB / 0.4967 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.2051, allocations: 248.1 kB / 0.497 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.2052, allocations: 12 kB / 0.497 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004938/0.2057, allocations: 51.94 kB / 0.497 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.2059, allocations: 68.36 kB / 0.4971 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.2059, allocations: 16 kB / 0.4971 GB, free: 2.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005506/0.2065, allocations: 490.9 kB / 0.4976 GB, free: 2.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2065, allocations: 0 / 0.4976 GB, free: 2.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00082/0.2073, allocations: 260 kB / 0.4978 GB, free: 1.758 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.002649/0.21, allocations: 2.237 MB / 0.5 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.2124, allocations: 1.539 MB / 0.5015 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2124, allocations: 4.062 kB / 0.5015 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008418/0.2133, allocations: 0.611 MB / 0.5021 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.2143, allocations: 230 kB / 0.5023 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.2267, allocations: 9.238 MB / 0.5114 GB, free: 3.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008382/0.2276, allocations: 1.161 MB / 0.5125 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007426/0.2284, allocations: 254.9 kB / 0.5127 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/0.2289, allocations: 343.3 kB / 0.5131 GB, free: 1.684 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2289, allocations: 3.938 kB / 0.5131 GB, free: 1.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2413/0.4702, allocations: 20.52 MB / 0.5331 GB, free: 66.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.099/9.569, allocations: 3.453 kB / 0.5331 GB, free: 66.1 MB / 398.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)