Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001069/0.001069, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1755/0.1755, allocations: 38.02 MB / 329.3 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001469, allocations: 65.47 kB / 398.1 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1188, allocations: 58.07 MB / 456.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009532/0.1284, allocations: 7.156 MB / 463.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005639/0.1341, allocations: 2.941 MB / 466.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.1353, allocations: 47.69 kB / 466.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.1369, allocations: 302.5 kB / 466.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.1387, allocations: 0.5408 MB / 467.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008644/0.1395, allocations: 247.6 kB / 467.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002005/0.1416, allocations: 1.625 MB / 469 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.1429, allocations: 0.7037 MB / 469.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008987/0.1439, allocations: 406.3 kB / 470.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009168/0.1448, allocations: 0.5488 MB / 470.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.1449, allocations: 48 kB / 470.7 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005307/0.1454, allocations: 287.5 kB / 471 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003434/0.1458, allocations: 307.1 kB / 471.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004652/0.1463, allocations: 410 kB / 471.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1475, allocations: 1.316 MB / 473 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1475, allocations: 3.984 kB / 473 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1476, allocations: 0 / 473 MB, free: 7.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1476, allocations: 3.938 kB / 473 MB, free: 7.578 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.002344/0.1499, allocations: 1.137 MB / 474.1 MB, free: 6.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.15, allocations: 8.031 kB / 474.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000671/0.1507, allocations: 135.8 kB / 474.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.1518, allocations: 0.6593 MB / 474.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1519, allocations: 87.62 kB / 475 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.1521, allocations: 64 kB / 475.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1535, allocations: 0.957 MB / 476 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1536, allocations: 3.984 kB / 476.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.862e-05/0.1536, allocations: 31.94 kB / 476.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.1537, allocations: 53.3 kB / 476.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.1551, allocations: 0.7818 MB / 476.9 MB, free: 3.523 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.004862/0.1599, allocations: 3.871 MB / 480.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008215/0.1608, allocations: 0.5167 MB / 481.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.1612, allocations: 242.5 kB / 481.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.1613, allocations: 11.94 kB / 481.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1613, allocations: 34.56 kB / 481.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.425e-06/0.1613, allocations: 0 / 481.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01118/0.1725, allocations: 3.738 MB / 485.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.1726, allocations: 119.1 kB / 485.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006765/0.1733, allocations: 0.5222 MB / 486 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.1733, allocations: 37.7 kB / 486 MB, free: 9.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/0.1736, allocations: 395 kB / 486.4 MB, free: 9.555 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.1738, allocations: 189.3 kB / 486.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.174, allocations: 130.5 kB / 486.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1741, allocations: 374.8 kB / 487.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.1746, allocations: 285.9 kB / 487.3 MB, free: 8.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006391/0.1753, allocations: 0.5033 MB / 487.8 MB, free: 7.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.1764, allocations: 0.8481 MB / 488.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1764, allocations: 8 kB / 488.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003429/0.1799, allocations: 1.449 MB / 490.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.1799, allocations: 11.94 kB / 490.2 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1799, allocations: 4 kB / 490.2 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.1816, allocations: 451.1 kB / 490.6 MB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004511/0.182, allocations: 111.8 kB / 490.7 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.1925, allocations: 8.445 MB / 499.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.1932, allocations: 23.98 kB / 499.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.1933, allocations: 36 kB / 499.2 MB, free: 11.88 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004612/0.1937, allocations: 310.4 kB / 499.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.1939, allocations: 63.25 kB / 499.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/0.197, allocations: 1.299 MB / 0.4891 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.036e-06/0.197, allocations: 8 kB / 0.4892 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1971, allocations: 3.938 kB / 0.4892 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.1971, allocations: 7.984 kB / 0.4892 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004536/0.2016, allocations: 2.248 MB / 0.4914 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.2016, allocations: 8 kB / 0.4914 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.202, allocations: 59.89 kB / 0.4914 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.2034, allocations: 427.1 kB / 0.4918 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.2034, allocations: 12 kB / 0.4918 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009589/0.213, allocations: 8.186 MB / 0.4998 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.213, allocations: 0 / 0.4998 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003743/0.2168, allocations: 1.855 MB / 0.5016 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.2171, allocations: 200.2 kB / 0.5018 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.495e-05/0.2172, allocations: 8 kB / 0.5018 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.2176, allocations: 19.98 kB / 0.5019 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.2178, allocations: 64.48 kB / 0.5019 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.2179, allocations: 19.98 kB / 0.5019 GB, free: 12.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004697/0.2183, allocations: 370.8 kB / 0.5023 GB, free: 11.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.2184, allocations: 112 / 0.5023 GB, free: 11.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001007/0.2194, allocations: 255.9 kB / 0.5025 GB, free: 11.67 MB / 398.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002879/0.2197, allocations: 135.6 kB / 0.5027 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.2218, allocations: 1.335 MB / 0.504 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2218, allocations: 4.125 kB / 0.504 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.2232, allocations: 0.9664 MB / 0.5049 GB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.2241, allocations: 170.3 kB / 0.5051 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.2269, allocations: 2 MB / 0.507 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.2275, allocations: 1.052 MB / 0.5081 GB, free: 5.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.2279, allocations: 109.7 kB / 0.5082 GB, free: 5.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.2281, allocations: 43.42 kB / 0.5082 GB, free: 5.684 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2281, allocations: 0 / 0.5082 GB, free: 5.684 MB / 398.1 MB Notification: Performance of Templates: time 0.2605/0.4886, allocations: 14.36 MB / 0.5222 GB, free: 66.91 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)