Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.0008094/0.0008093, allocations: 87.34 kB / 16.31 MB, free: 5.676 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.001021/0.001021, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.407/1.407, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1782/0.1782, allocations: 38.1 MB / 330.4 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.0004011, allocations: 12 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1235, allocations: 59.16 MB / 459.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.00749/0.131, allocations: 6.384 MB / 465.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.1354, allocations: 2.756 MB / 468.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006382/0.1361, allocations: 47.69 kB / 468.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007061/0.1368, allocations: 214.6 kB / 468.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.1383, allocations: 0.5754 MB / 469.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007933/0.1391, allocations: 259.6 kB / 469.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.1408, allocations: 1.328 MB / 470.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.142, allocations: 0.7716 MB / 471.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006065/0.1426, allocations: 398.4 kB / 472 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006931/0.1433, allocations: 0.4944 MB / 472.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.607e-05/0.1434, allocations: 40 kB / 472.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005431/0.144, allocations: 267.5 kB / 472.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002824/0.1443, allocations: 287.2 kB / 473.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.1445, allocations: 181.3 kB / 473.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.1456, allocations: 1.06 MB / 474.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1456, allocations: 0 / 474.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1456, allocations: 0 / 474.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1456, allocations: 4 kB / 474.4 MB, free: 8.188 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002106/0.1478, allocations: 1.004 MB / 475.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.1478, allocations: 8.031 kB / 475.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.148, allocations: 122.5 kB / 475.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00062/0.1486, allocations: 134.9 kB / 475.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.1498, allocations: 0.6466 MB / 476.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.15, allocations: 91.64 kB / 476.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1501, allocations: 64 kB / 476.4 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.1517, allocations: 0.953 MB / 477.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.1517, allocations: 4 kB / 477.4 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.1518, allocations: 27.98 kB / 477.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.1519, allocations: 61.27 kB / 477.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.1532, allocations: 0.7818 MB / 478.2 MB, free: 4.145 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00554/0.1588, allocations: 3.864 MB / 482.1 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008402/0.1596, allocations: 0.5223 MB / 482.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.1601, allocations: 242.5 kB / 482.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.1601, allocations: 4 kB / 482.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/0.1602, allocations: 38.5 kB / 482.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 4.899e-06/0.1602, allocations: 4 kB / 482.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.009965/0.1702, allocations: 3.785 MB / 486.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.1703, allocations: 111.2 kB / 486.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.1709, allocations: 0.5261 MB / 487.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.171, allocations: 33.7 kB / 487.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.1713, allocations: 406.9 kB / 487.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.1714, allocations: 185.3 kB / 487.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.1715, allocations: 16 kB / 488 MB, free: 9.938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1716, allocations: 370.8 kB / 488.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004494/0.1721, allocations: 277.8 kB / 488.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.1727, allocations: 0.5072 MB / 489.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/0.1732, allocations: 364.6 kB / 489.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1733, allocations: 4 kB / 489.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003048/0.1763, allocations: 1.441 MB / 490.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.1764, allocations: 11.95 kB / 490.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.1764, allocations: 11.94 kB / 490.9 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.1778, allocations: 459.3 kB / 491.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.1783, allocations: 127.8 kB / 491.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009422/0.1877, allocations: 8.447 MB / 499.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000572/0.1883, allocations: 35.89 kB / 500 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.1884, allocations: 28.06 kB / 0.4883 GB, free: 13.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004876/0.1888, allocations: 317.5 kB / 0.4886 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.189, allocations: 55.34 kB / 0.4886 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.1918, allocations: 1.306 MB / 0.4899 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.1919, allocations: 4 kB / 0.4899 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.1919, allocations: 11.95 kB / 0.4899 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1919, allocations: 7.984 kB / 0.4899 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.196, allocations: 2.245 MB / 0.4921 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.196, allocations: 0 / 0.4921 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.1964, allocations: 68.05 kB / 0.4922 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.1977, allocations: 439 kB / 0.4926 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.1977, allocations: 12 kB / 0.4926 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2212/0.419, allocations: 8.169 MB / 0.5006 GB, free: 53.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.419, allocations: 2.141 kB / 0.5006 GB, free: 53.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003438/0.4225, allocations: 1.846 MB / 0.5024 GB, free: 53.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.4228, allocations: 196.7 kB / 0.5026 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-05/0.4229, allocations: 19.25 kB / 0.5026 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.4232, allocations: 20.14 kB / 0.5026 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.4234, allocations: 58.89 kB / 0.5027 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.4234, allocations: 20.95 kB / 0.5027 GB, free: 52.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004666/0.4239, allocations: 367.5 kB / 0.5031 GB, free: 52.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4239, allocations: 0 / 0.5031 GB, free: 52.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009021/0.4248, allocations: 254.1 kB / 0.5033 GB, free: 52.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003339/0.4282, allocations: 2.426 MB / 0.5057 GB, free: 51.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.43, allocations: 1.337 MB / 0.507 GB, free: 51.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.43, allocations: 0 / 0.507 GB, free: 51.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.4311, allocations: 0.9743 MB / 0.5079 GB, free: 50.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008905/0.432, allocations: 165.9 kB / 0.5081 GB, free: 50.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009546/0.4416, allocations: 5.282 MB / 0.5133 GB, free: 48.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009001/0.4425, allocations: 1.056 MB / 0.5143 GB, free: 47.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005269/0.4431, allocations: 106.7 kB / 0.5144 GB, free: 47.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.4434, allocations: 265.8 kB / 0.5146 GB, free: 47.04 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4434, allocations: 0 / 0.5146 GB, free: 47.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03538/0.4788, allocations: 20.37 MB / 0.5345 GB, free: 34.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000132/0.479, allocations: 227.7 kB / 0.5347 GB, free: 34.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/2.782, allocations: 3.938 kB / 0.5348 GB, free: 34.53 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat does not exist to compare? outputFormat=mat