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.0009308/0.0009309, allocations: 89.3 kB / 16.31 MB, free: 6.41 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.001057/0.001057, allocations: 183.7 kB / 17.21 MB, free: 6.289 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.441/1.441, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1786/0.1786, allocations: 38.1 MB / 330.4 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 8.969 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 59.17 MB / 459.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007244/0.1201, allocations: 7.249 MB / 466.6 MB, free: 40 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.1252, allocations: 3.001 MB / 469.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.1263, allocations: 47.69 kB / 469.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009582/0.1272, allocations: 222.5 kB / 469.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002218/0.1295, allocations: 0.7545 MB / 470.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008825/0.1304, allocations: 275.6 kB / 470.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.1327, allocations: 1.745 MB / 472.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.1343, allocations: 1.126 MB / 473.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008223/0.1352, allocations: 0.5058 MB / 474.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009231/0.1361, allocations: 0.6814 MB / 474.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.1362, allocations: 56 kB / 475 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.1373, allocations: 0.6122 MB / 475.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.1377, allocations: 418.9 kB / 476 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.138, allocations: 253.1 kB / 476.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.1395, allocations: 1.656 MB / 477.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1395, allocations: 0 / 477.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1396, allocations: 0 / 477.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.1396, allocations: 0 / 477.9 MB, free: 4.625 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.00252/0.1421, allocations: 1.356 MB / 479.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1421, allocations: 8.031 kB / 479.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/0.1423, allocations: 172.7 kB / 479.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005802/0.1429, allocations: 166.5 kB / 479.6 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.1441, allocations: 0.7946 MB / 480.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.1443, allocations: 204.8 kB / 480.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.1445, allocations: 103.9 kB / 480.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.1466, allocations: 1.465 MB / 482.2 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.1467, allocations: 3.938 kB / 482.2 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.1468, allocations: 44 kB / 482.2 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.1469, allocations: 77.95 kB / 482.3 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001922/0.1488, allocations: 1.261 MB / 483.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006188/0.155, allocations: 5.239 MB / 488.8 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.1564, allocations: 1.033 MB / 489.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000713/0.1572, allocations: 0.4972 MB / 490.3 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.1572, allocations: 12.56 kB / 490.3 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1573, allocations: 39.12 kB / 490.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.515e-06/0.1573, allocations: 4 kB / 490.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005741/0.163, allocations: 3.114 MB / 493.5 MB, free: 4.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.1631, allocations: 115.4 kB / 493.6 MB, free: 4.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008298/0.164, allocations: 0.6836 MB / 494.3 MB, free: 3.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.164, allocations: 45.69 kB / 494.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.1643, allocations: 478.7 kB / 494.8 MB, free: 3.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.1646, allocations: 268.1 kB / 495.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.1646, allocations: 16 kB / 495.1 MB, free: 2.883 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1648, allocations: 394.7 kB / 495.5 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006581/0.1654, allocations: 445.8 kB / 495.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000828/0.1663, allocations: 0.7129 MB / 496.6 MB, free: 1.219 MB / 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.003715/0.17, allocations: 1.576 MB / 498.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.17, allocations: 4 kB / 498.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002023/0.172, allocations: 1.308 MB / 499.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.1721, allocations: 12.61 kB / 499.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.1721, allocations: 15.94 kB / 499.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002284/0.1723, allocations: 85.67 kB / 499.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008048/0.1732, allocations: 227.6 kB / 499.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009926/0.1742, allocations: 1.339 MB / 0.4894 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000618/0.1748, allocations: 87.89 kB / 0.4895 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.621e-05/0.1749, allocations: 43.98 kB / 0.4895 GB, free: 12.35 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 sytem: 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[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 initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005831/0.1755, allocations: 412.8 kB / 0.4899 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.1756, allocations: 83.02 kB / 0.49 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.1773, allocations: 0.9938 MB / 0.491 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/0.1773, allocations: 12 kB / 0.491 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1773, allocations: 4 kB / 0.491 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1774, allocations: 3.984 kB / 0.491 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.1808, allocations: 2.285 MB / 0.4932 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.1808, allocations: 4 kB / 0.4932 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/0.1815, allocations: 139.8 kB / 0.4934 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.1816, allocations: 32.83 kB / 0.4934 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.862e-05/0.1817, allocations: 19.98 kB / 0.4934 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.1827, allocations: 1.284 MB / 0.4947 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1827, allocations: 0 / 0.4947 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.1852, allocations: 1.657 MB / 0.4963 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004279/0.1857, allocations: 244.1 kB / 0.4965 GB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.1858, allocations: 16 kB / 0.4965 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004771/0.1863, allocations: 59.94 kB / 0.4966 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.1864, allocations: 52.48 kB / 0.4967 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.556e-05/0.1865, allocations: 23.98 kB / 0.4967 GB, free: 4.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006404/0.1871, allocations: 479 kB / 0.4971 GB, free: 4.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1871, allocations: 0 / 0.4971 GB, free: 4.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001075/0.1882, allocations: 260 kB / 0.4974 GB, free: 4.055 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00284/0.1911, allocations: 2.265 MB / 0.4996 GB, free: 1.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.193, allocations: 1.238 MB / 0.5008 GB, free: 488 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.1931, allocations: 8.25 kB / 0.5008 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2226/0.4157, allocations: 0.6046 MB / 0.5014 GB, free: 56.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.4171, allocations: 208.9 kB / 0.5016 GB, free: 56.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.4276, allocations: 6.861 MB / 0.5083 GB, free: 53.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.4284, allocations: 1.164 MB / 0.5094 GB, free: 52.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009139/0.4293, allocations: 254.3 kB / 0.5097 GB, free: 52.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.4298, allocations: 343.2 kB / 0.51 GB, free: 52.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4298, allocations: 0 / 0.51 GB, free: 52.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03919/0.469, allocations: 19.68 MB / 0.5292 GB, free: 42.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/0.4692, allocations: 212.7 kB / 0.5294 GB, free: 41.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.32/2.789, allocations: 0 / 0.5294 GB, free: 41.89 MB / 382.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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat does not exist to compare? outputFormat=mat