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.001791/0.001791, allocations: 115.3 kB / 17.29 MB, free: 6.324 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.00206/0.002061, allocations: 197.3 kB / 18.21 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.063/2.063, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2101/0.2101, allocations: 38.02 MB / 330 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 64.91 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1403, allocations: 58.07 MB / 457 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01132/0.1517, allocations: 7.157 MB / 464.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006234/0.158, allocations: 2.918 MB / 467.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.1593, allocations: 43.75 kB / 467.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.1611, allocations: 310.5 kB / 467.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.1633, allocations: 0.5291 MB / 468 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009993/0.1643, allocations: 259.7 kB / 468.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.1666, allocations: 1.196 MB / 469.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00171/0.1683, allocations: 0.8923 MB / 470.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.1695, allocations: 486.3 kB / 470.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.1707, allocations: 0.5645 MB / 471.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002768/0.171, allocations: 84 kB / 471.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009403/0.172, allocations: 331.5 kB / 471.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005589/0.1726, allocations: 343.1 kB / 472.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009977/0.1736, allocations: 450 kB / 472.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.1754, allocations: 1.091 MB / 473.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1754, allocations: 0 / 473.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1754, allocations: 0 / 473.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-05/0.1755, allocations: 3.984 kB / 473.6 MB, free: 7.711 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.00359/0.1791, allocations: 1.145 MB / 474.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.1791, allocations: 11.89 kB / 474.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008862/0.18, allocations: 131.8 kB / 474.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.1815, allocations: 0.6632 MB / 475.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.1817, allocations: 79.64 kB / 475.6 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.1819, allocations: 68 kB / 475.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.1839, allocations: 0.953 MB / 476.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.653e-05/0.1839, allocations: 7.984 kB / 476.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.976e-05/0.184, allocations: 27.98 kB / 476.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.1842, allocations: 57.3 kB / 476.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.1858, allocations: 0.7818 MB / 477.5 MB, free: 3.648 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.006343/0.1921, allocations: 3.875 MB / 481.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009419/0.1931, allocations: 0.5158 MB / 481.9 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.1936, allocations: 242.5 kB / 482.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.674e-05/0.1937, allocations: 4 kB / 482.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.1937, allocations: 42.5 kB / 482.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 3.607e-06/0.1937, allocations: 0 / 482.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01202/0.2058, allocations: 3.74 MB / 485.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/0.2059, allocations: 111.2 kB / 486.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009691/0.2069, allocations: 0.5299 MB / 486.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.207, allocations: 29.7 kB / 486.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004652/0.2074, allocations: 395 kB / 487 MB, free: 9.691 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.2077, allocations: 197.3 kB / 487.2 MB, free: 9.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.208, allocations: 134.5 kB / 487.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.2082, allocations: 374.8 kB / 487.7 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005472/0.2088, allocations: 277.8 kB / 488 MB, free: 8.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.2096, allocations: 0.5072 MB / 488.5 MB, free: 8.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.2109, allocations: 0.8481 MB / 489.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.2109, allocations: 0 / 489.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003788/0.2147, allocations: 1.445 MB / 490.8 MB, free: 5.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.2148, allocations: 14.48 kB / 490.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/0.2148, allocations: 8 kB / 490.8 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.2166, allocations: 462.7 kB / 491.2 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.2172, allocations: 119.8 kB / 491.3 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.2296, allocations: 9.128 MB / 0.4887 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.2305, allocations: 35.89 kB / 0.4888 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.2307, allocations: 31.98 kB / 0.4888 GB, free: 11.29 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.000712/0.2314, allocations: 310.5 kB / 0.4891 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.2316, allocations: 55.34 kB / 0.4892 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/0.2352, allocations: 1.306 MB / 0.4904 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.2353, allocations: 4 kB / 0.4904 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.2353, allocations: 4 kB / 0.4904 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2353, allocations: 0 / 0.4904 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005325/0.2406, allocations: 2.26 MB / 0.4926 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.2407, allocations: 0 / 0.4926 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.2411, allocations: 63.91 kB / 0.4927 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001511/0.2426, allocations: 431.2 kB / 0.4931 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.707e-05/0.2427, allocations: 12 kB / 0.4931 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.2547, allocations: 8.875 MB / 0.5018 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/0.2548, allocations: 4.031 kB / 0.5018 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004453/0.2592, allocations: 1.855 MB / 0.5036 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005244/0.2598, allocations: 196.3 kB / 0.5038 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.26, allocations: 12.06 kB / 0.5038 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.2605, allocations: 19.98 kB / 0.5038 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/0.2608, allocations: 56.48 kB / 0.5039 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.375e-05/0.2609, allocations: 19.94 kB / 0.5039 GB, free: 10.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006643/0.2616, allocations: 370.8 kB / 0.5043 GB, free: 10.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2616, allocations: 0 / 0.5043 GB, free: 10.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001384/0.263, allocations: 252 kB / 0.5045 GB, free: 10.36 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.0004223/0.2634, allocations: 135.1 kB / 0.5046 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.2663, allocations: 1.408 MB / 0.506 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2663, allocations: 4 kB / 0.506 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.268, allocations: 0.9673 MB / 0.507 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.2694, allocations: 185.3 kB / 0.5071 GB, free: 7.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.2734, allocations: 2.069 MB / 0.5092 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.2745, allocations: 1.048 MB / 0.5102 GB, free: 4.367 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.2748, allocations: 55.42 kB / 0.5102 GB, free: 4.312 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.2748, allocations: 4 kB / 0.5102 GB, free: 4.309 MB / 398.1 MB Notification: Performance of Templates: time 0.293/0.5677, allocations: 24.59 MB / 0.5342 GB, free: 61.36 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)