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.0009558/0.000956, allocations: 96.53 kB / 16.3 MB, free: 5.656 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.0009065/0.0009065, allocations: 182.5 kB / 17.19 MB, free: 5.59 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.215/1.215, allocations: 223.2 MB / 241.1 MB, free: 276 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1595/0.1595, allocations: 38.09 MB / 330.3 MB, free: 8.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 8 kB / 400.1 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1072, allocations: 59.16 MB / 459.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007088/0.1143, allocations: 6.112 MB / 465.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004747/0.119, allocations: 2.737 MB / 468.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006529/0.1197, allocations: 43.75 kB / 468.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008058/0.1206, allocations: 226.7 kB / 468.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001452/0.122, allocations: 498.5 kB / 468.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007837/0.1228, allocations: 251.5 kB / 469.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.1239, allocations: 0.667 MB / 469.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001134/0.125, allocations: 0.7755 MB / 470.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005582/0.1256, allocations: 366.7 kB / 470.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005238/0.1262, allocations: 366.7 kB / 471.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.55e-05/0.1262, allocations: 40 kB / 471.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.1267, allocations: 255.6 kB / 471.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.127, allocations: 255.3 kB / 471.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.1272, allocations: 189.3 kB / 471.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009575/0.1282, allocations: 1.056 MB / 473 MB, free: 9.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1282, allocations: 0 / 473 MB, free: 9.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1282, allocations: 0 / 473 MB, free: 9.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1282, allocations: 0 / 473 MB, free: 9.469 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.002034/0.1302, allocations: 1.004 MB / 474 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1303, allocations: 8.031 kB / 474 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.1305, allocations: 122.5 kB / 474.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005994/0.1311, allocations: 138.9 kB / 474.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1322, allocations: 0.6428 MB / 474.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.1323, allocations: 87.59 kB / 475 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1324, allocations: 64 kB / 475.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.1339, allocations: 0.9491 MB / 476 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1339, allocations: 4 kB / 476 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-05/0.134, allocations: 31.98 kB / 476 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.1341, allocations: 57.28 kB / 476.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.1354, allocations: 0.7779 MB / 476.9 MB, free: 5.438 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.004798/0.1402, allocations: 3.875 MB / 480.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007978/0.141, allocations: 0.5175 MB / 481.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.1411, allocations: 4.062 kB / 481.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.1411, allocations: 38.56 kB / 481.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.735e-06/0.1411, allocations: 0 / 481.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.01041/0.1515, allocations: 3.975 MB / 485.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.1516, allocations: 111.3 kB / 485.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/0.1524, allocations: 0.5222 MB / 485.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/0.1524, allocations: 33.7 kB / 485.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.1527, allocations: 399 kB / 486.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.1529, allocations: 189.2 kB / 486.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.1529, allocations: 16 kB / 486.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1531, allocations: 370.8 kB / 486.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004619/0.1536, allocations: 281.8 kB / 487.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.1542, allocations: 0.5073 MB / 487.7 MB, free: 9.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005769/0.1548, allocations: 372.6 kB / 488 MB, free: 9.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.1548, allocations: 4 kB / 488.1 MB, free: 9.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003174/0.158, allocations: 1.545 MB / 489.6 MB, free: 7.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.158, allocations: 8 kB / 489.6 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.158, allocations: 11.94 kB / 489.6 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.1596, allocations: 480.1 kB / 490.1 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.16, allocations: 107.8 kB / 490.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.1708, allocations: 10.04 MB / 0.4885 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006493/0.1715, allocations: 35.89 kB / 0.4885 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.1716, allocations: 28 kB / 0.4886 GB, free: 12.61 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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005255/0.1721, allocations: 309.5 kB / 0.4889 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1722, allocations: 55.34 kB / 0.4889 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002971/0.1752, allocations: 1.418 MB / 0.4903 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1752, allocations: 7.938 kB / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1752, allocations: 4 kB / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.1752, allocations: 0 / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/0.1795, allocations: 2.345 MB / 0.4926 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1795, allocations: 0 / 0.4926 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.1798, allocations: 63.89 kB / 0.4927 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001351/0.1811, allocations: 464.3 kB / 0.4931 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.262e-05/0.1812, allocations: 15.98 kB / 0.4931 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.217/0.3982, allocations: 9.751 MB / 0.5026 GB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3982, allocations: 3.25 kB / 0.5026 GB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00397/0.4022, allocations: 1.997 MB / 0.5046 GB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004619/0.4027, allocations: 204.8 kB / 0.5048 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.09e-05/0.4028, allocations: 12.2 kB / 0.5048 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.4032, allocations: 22.05 kB / 0.5048 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.4035, allocations: 59.19 kB / 0.5049 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.4035, allocations: 19.86 kB / 0.5049 GB, free: 51.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005375/0.4041, allocations: 368.5 kB / 0.5053 GB, free: 51.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4041, allocations: 1.719 kB / 0.5053 GB, free: 51.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001043/0.4051, allocations: 249.4 kB / 0.5055 GB, free: 51.84 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 (30): * Single equations (assignments): 24 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(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.004005/0.4091, allocations: 2.932 MB / 0.5084 GB, free: 50.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.4114, allocations: 1.461 MB / 0.5098 GB, free: 49.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4114, allocations: 0 / 0.5098 GB, free: 49.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4128, allocations: 1.088 MB / 0.5108 GB, free: 48.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008033/0.4136, allocations: 157.5 kB / 0.511 GB, free: 48.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00971/0.4233, allocations: 10.18 MB / 0.5209 GB, free: 40.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/0.4241, allocations: 1.071 MB / 0.522 GB, free: 39.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004334/0.4245, allocations: 106.3 kB / 0.5221 GB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000289/0.4248, allocations: 263.9 kB / 0.5223 GB, free: 39.67 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4248, allocations: 0 / 0.5223 GB, free: 39.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04682/0.4716, allocations: 20.48 MB / 0.5423 GB, free: 26.31 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/0.4718, allocations: 230.5 kB / 0.5426 GB, free: 26.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.105/2.576, allocations: 4 kB / 0.5426 GB, free: 26.06 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